Project Date
NLTEST 18 Sep 2020, 15:11

Failures Overview

The following summary displays scenarios that failed.

2:5.651
Scenario Outline check known link http://data.europa.eu/eli/reg/2010/1089
Steps
* def nlinks = ["http://data.europa.eu/eli/reg/2010/1089"] 0.000
* print nlinks 0.018
15:08:26.457 [print] [
  "http://data.europa.eu/eli/reg/2010/1089"
]
* def title = "known url" 0.001
* configure readTimeout = 60000 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:2.829
com.intuit.karate.exception.KarateException: check-known-links.feature:10 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/check-known-links.feature
items: [{link=http://data.europa.eu/eli/reg/2010/1089}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://data.europa.eu/eli/reg/2010/1089"}
checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
15:09:29.293 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://data.europa.eu/eli/reg/2010/1089"}
checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://data.europa.eu/eli/reg/2010/1089"
}
> * print "testing xlinkurl: 0.063
15:08:26.555 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:08:26.556 [print] testing xlinkurl:http://data.europa.eu/eli/reg/2010/1089
> Given url link 0.000
> When method HEAD 1:2.736
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
15:09:29.292 java.net.SocketTimeoutException: Read timed out, http call failed after 62735 milliseconds for URL: http://data.europa.eu/eli/reg/2010/1089
15:09:29.292 http request failed: 
java.net.SocketTimeoutException: Read timed out
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.242
Scenario Outline title
datasetIdentifierCode <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.012
And param id = 'datasetIdentifierCode' 0.002
And param elementsetname = 'full' 0.001
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.007
When method get 0.188
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.014
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'datasetIdentifierCode' 0.014
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:26 - path: /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString, actual: null, expected: 'datasetIdentifierCode', reason: actual xpath does not exist
15:10:00.069 assertion failed: path: /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString, actual: null, expected: 'datasetIdentifierCode', reason: actual xpath does not exist
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
* print title 0.000
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "datasetIdentifierCode" 0.000
0.448
Scenario Outline Bronbestanden waterkwaliteit
edf79e6a-d73d-4def-8d22-0f495cc76a73 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.440
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:03.440 [print] title:Bronbestanden waterkwaliteit
* print title 0.000
15:10:03.441 [print] Bronbestanden waterkwaliteit
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:03.442 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:03.444 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:45 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "edf79e6a-d73d-4def-8d22-0f495cc76a73" 0.000
0.362
Scenario Outline Overheidsdiensten
c935f2ab-9b65-4dc4-94a0-73aeb840a941 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.356
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:11.375 [print] title:Overheidsdiensten
* print title 0.000
15:10:11.375 [print] Overheidsdiensten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:11.375 [print] [
  "erik.simonse@kvk.nl",
  "erik.simonse@kvk.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:11.376 [print] organisation: [
  "Kamer van Koophandel",
  "Kamer van Koophandel"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:45 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "c935f2ab-9b65-4dc4-94a0-73aeb840a941" 0.000
0.393
Scenario Outline Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
fe45c540-e37d-11e4-b571-0800200c9a66 <organisation> <electronicMailAddress>
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.384
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:17.875 [print] title:Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* print title 0.000
15:10:17.876 [print] Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:17.877 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:17.878 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: check-known-dataset-record.feature:45 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* print nlinks 0.000
* def id = "fe45c540-e37d-11e4-b571-0800200c9a66" 0.000
2.093
Scenario Outline Check f99e915a-75e5-4c36-97f2-61eff692d85b
Check href links in metadata record van f99e915a-75e5-4c36-97f2-61eff692d85b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.833
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:32.819 [print] title:Grondwateronderzoek onder INSPIRE
* print title 0.000
15:10:32.819 [print] Grondwateronderzoek onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:32.821 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:32.823 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f99e915a-75e5-4c36-97f2-61eff692d85b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.009
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.008
15:10:32.845 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "f99e915a-75e5-4c36-97f2-61eff692d85b" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.616
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 289, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:33.463 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"
}
> * print "testing xlinkurl: 0.002
15:10:32.852 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:32.853 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 289, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
15:10:33.144 status code was: 404, expected: 200, response time: 289, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:33.144 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 289, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
15:10:33.145 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.146 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.316
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:33.463 status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.745
Scenario Outline Check 3703b249-a0eb-484e-ba7a-10e31a55bcec
Check href links in metadata record van 3703b249-a0eb-484e-ba7a-10e31a55bcec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.751
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:32.738 [print] title:Invasieve Exoten (INSPIRE Geharmoniseerd)
* print title 0.000
15:10:32.738 [print] Invasieve Exoten (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:32.738 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "Geodatabeheer.GISCC@rvo.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:32.740 [print] organisation: Ministerie van Landbouw, Natuur en Voedselkwaliteit
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3703b249-a0eb-484e-ba7a-10e31a55bcec","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.019
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.005
15:10:32.769 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec",
  "579"
]
* def id = "3703b249-a0eb-484e-ba7a-10e31a55bcec" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.982
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec}, {link=579}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 420, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:33.752 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.005
15:10:32.778 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:32.779 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.541
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"
}
> * print "testing xlinkurl: 0.000
15:10:33.323 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.324 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec
> Given url link 0.000
> When method HEAD 0.420
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 420, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
15:10:33.745 status code was: 500, expected: 200, response time: 420, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "579"
}
> * print "testing xlinkurl: 0.000
15:10:33.745 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 420, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
15:10:33.746 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.747 [print] testing xlinkurl:579
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:33.751 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 579
15:10:33.751 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.173
Scenario Outline Check 3a72b9a4-cda9-11ea-87d0-0242ac130003
Check href links in metadata record van 3a72b9a4-cda9-11ea-87d0-0242ac130003
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.586
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:32.580 [print] title:Grondwater Monitoring Net
* print title 0.000
15:10:32.580 [print] Grondwater Monitoring Net
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:32.581 [print] [
  "info@bro.nl",
  "Info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:32.583 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3a72b9a4-cda9-11ea-87d0-0242ac130003","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.096
* print nlinks 0.019
15:10:32.703 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "3a72b9a4-cda9-11ea-87d0-0242ac130003" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.733
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 288, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 417, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:33.452 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 417, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"
}
> * print "testing xlinkurl: 0.000
15:10:32.726 [print]
> * def link = __arg.link 0.006
> * print "testing xlinkurl:" + link 0.007
15:10:32.741 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 288, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
15:10:33.030 status code was: 404, expected: 200, response time: 288, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:33.031 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 288, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
15:10:33.033 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.034 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.418
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 417, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:33.452 status code was: 500, expected: 200, response time: 417, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
7.209
Scenario Outline Check 247a1d15-0a67-40ce-85be-1403c08f15a8
Check href links in metadata record van 247a1d15-0a67-40ce-85be-1403c08f15a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.714
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:32.708 [print] title:Nationale Parken (INSPIRE Geharmoniseerd)
* print title 0.000
15:10:32.708 [print] Nationale Parken (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:32.710 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "info@minlnv.nl",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:32.712 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"247a1d15-0a67-40ce-85be-1403c08f15a8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.008
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.021
* print nlinks 0.000
15:10:32.743 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "247a1d15-0a67-40ce-85be-1403c08f15a8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.231
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 437, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:10:35.975 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 437, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:32.747 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:32.747 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.563
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8"
}
> * print "testing xlinkurl: 0.000
15:10:33.312 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.313 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.001
15:10:33.532 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:33.532 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.577
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:34.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.113 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.556
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
15:10:34.672 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.672 [print] testing xlinkurl:xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:10:34.673 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps, http call failed after 0 milliseconds for URL: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:10:34.673 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:10:34.673 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
15:10:34.674 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.674 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.299
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 437, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:10:35.974 status code was: 404, expected: 200, response time: 437, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.589
Scenario Outline Check af0c582f-9e6b-46e6-865a-fc3a2d5289b9
Check href links in metadata record van af0c582f-9e6b-46e6-865a-fc3a2d5289b9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:33.994 [print] title:Bodemgebruik
* print title 0.001
15:10:33.995 [print] Bodemgebruik
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:33.998 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:33.999 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"af0c582f-9e6b-46e6-865a-fc3a2d5289b9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.000
15:10:34.011 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"
]
* def id = "af0c582f-9e6b-46e6-865a-fc3a2d5289b9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.019
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:10:34.032 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"
}
> * print "testing xlinkurl: 0.003
15:10:34.024 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.024 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:10:34.032 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 7 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
15:10:34.032 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.601
Scenario Outline Check 9d9f1738-aced-47c9-aaa0-c62474a2dcfb
Check href links in metadata record van 9d9f1738-aced-47c9-aaa0-c62474a2dcfb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.570
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.039 [print] title:Zeegebieden
* print title 0.000
15:10:34.039 [print] Zeegebieden
* def email = get response //electronicMailAddress/CharacterString 0.004
* print email 0.000
15:10:34.044 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.045 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9d9f1738-aced-47c9-aaa0-c62474a2dcfb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:34.053 [print] [
  "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"
]
* def id = "9d9f1738-aced-47c9-aaa0-c62474a2dcfb" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.062 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"
}
> * print "testing xlinkurl: 0.000
15:10:34.058 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.058 [print] testing xlinkurl:http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.060 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
15:10:34.061 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.305
Scenario Outline Check 3a7dd0a6-d130-4c4c-b0ba-24365cf036e2
Check href links in metadata record van 3a7dd0a6-d130-4c4c-b0ba-24365cf036e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.269 [print] title:Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:34.269 [print] Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:34.270 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.082
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.352 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3a7dd0a6-d130-4c4c-b0ba-24365cf036e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.000
15:10:34.362 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"
]
* def id = "3a7dd0a6-d130-4c4c-b0ba-24365cf036e2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.350
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.713 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:34.369 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.369 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.340
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"
}
> * print "testing xlinkurl: 0.000
15:10:34.712 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.713 [print] testing xlinkurl:http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.713 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
15:10:34.713 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.513
Scenario Outline Check b3f66964-a8c1-456f-9799-9cafca2cb7b1
Check href links in metadata record van b3f66964-a8c1-456f-9799-9cafca2cb7b1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.577
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.358 [print] title:Monitoring stations (Nitraatrichtlijn) ondiepe filters
* print title 0.000
15:10:34.358 [print] Monitoring stations (Nitraatrichtlijn) ondiepe filters
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:34.359 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.012
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.372 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b3f66964-a8c1-456f-9799-9cafca2cb7b1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:10:34.379 [print] [
  "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"
]
* def id = "b3f66964-a8c1-456f-9799-9cafca2cb7b1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.456
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:34.836 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"
}
> * print "testing xlinkurl: 0.000
15:10:34.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.383 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
> Given url link 0.000
> When method HEAD 0.452
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:34.836 javax.net.ssl.SSLException: Connection reset, http call failed after 452 milliseconds for URL: https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
15:10:34.836 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.640
Scenario Outline Check 81ff84ec-42a4-4481-840b-12713bbb5d38
Check href links in metadata record van 81ff84ec-42a4-4481-840b-12713bbb5d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.614
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.406 [print] title:Geografische Namen
* print title 0.000
15:10:34.406 [print] Geografische Namen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:34.408 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.409 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"81ff84ec-42a4-4481-840b-12713bbb5d38","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.000
15:10:34.418 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"
]
* def id = "81ff84ec-42a4-4481-840b-12713bbb5d38" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.426 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"
}
> * print "testing xlinkurl: 0.000
15:10:34.423 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.424 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:34.425 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
15:10:34.425 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.177
Scenario Outline Check a7fb2234-f7b4-4a03-b282-f10947f42fb1
Check href links in metadata record van a7fb2234-f7b4-4a03-b282-f10947f42fb1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.557 [print] title:Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* print title 0.000
15:10:34.557 [print] Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:34.558 [print] [
  "info@dinoloket.nl",
  "geodesk.cgi@wur.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.559 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "Alterra, Wageningen UR",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a7fb2234-f7b4-4a03-b282-f10947f42fb1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.010
* def xlinks = get response /GetRecordByIdResponse//@href 0.002
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.000
15:10:34.581 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "a7fb2234-f7b4-4a03-b282-f10947f42fb1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.320
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 548, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 727, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:36.903 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"
}
> * print "testing xlinkurl: 0.000
15:10:34.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.591 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac
> Given url link 0.000
> When method HEAD 0.548
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 548, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
15:10:35.142 status code was: 404, expected: 200, response time: 548, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.005
15:10:35.144 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 548, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
15:10:35.150 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:35.152 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.728
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 727, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:10:35.880 status code was: 404, expected: 200, response time: 727, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:10:35.880 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 727, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:10:35.881 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.881 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.706
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:36.589 status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:36.589 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:36.590 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.000
15:10:36.593 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:36.903 status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.606
Scenario Outline Check c7662717-9e43-4367-a344-723d73abbb3e
Check href links in metadata record van c7662717-9e43-4367-a344-723d73abbb3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7662717-9e43-4367-a344-723d73abbb3e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7662717-9e43-4367-a344-723d73abbb3e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:34.610 [print] title:-Gegevens boormonsterprofiel onder PDOK
* print title 0.000
15:10:34.610 [print] -Gegevens boormonsterprofiel onder PDOK
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:34.611 [print] [
  "info@dinoloket",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:34.611 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c7662717-9e43-4367-a344-723d73abbb3e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:34.618 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"
]
* def id = "c7662717-9e43-4367-a344-723d73abbb3e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.526
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 521, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
15:10:35.145 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 521, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"
}
> * print "testing xlinkurl: 0.000
15:10:34.622 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:34.623 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e
> Given url link 0.000
> When method HEAD 0.521
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 521, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
15:10:35.145 status code was: 404, expected: 200, response time: 521, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.260
Scenario Outline Check 8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f
Check href links in metadata record van 8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.508
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:35.228 [print] title:Emissies naar het riool in 2011 vanuit de industrie
* print title 0.000
15:10:35.229 [print] Emissies naar het riool in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:35.231 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:35.233 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:35.242 [print] [
  "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"
]
* def id = "8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.368
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:35.612 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"
}
> * print "testing xlinkurl: 0.001
15:10:35.251 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.252 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
> Given url link 0.000
> When method HEAD 0.360
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:35.611 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
15:10:35.612 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.583
Scenario Outline Check 29d5310f-dd0d-45ba-abad-b4ffc6b8785f
Check href links in metadata record van 29d5310f-dd0d-45ba-abad-b4ffc6b8785f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.506
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
15:10:35.349 [print] title:TOP10NL
* print title 0.000
15:10:35.350 [print] TOP10NL
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:10:35.353 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.002
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:35.355 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"29d5310f-dd0d-45ba-abad-b4ffc6b8785f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:10:35.364 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201",
  "",
  "",
  "",
  "",
  ""
]
* def id = "29d5310f-dd0d-45ba-abad-b4ffc6b8785f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.033
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b201}, {link=}, {link=}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.399 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"
}
> * print "testing xlinkurl: 0.001
15:10:35.369 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.370 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:35.371 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
15:10:35.372 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:35.373 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:35.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.375 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.376 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:35.377 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:35.378 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.380 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.380 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.382 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:35.382 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:35.384 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.386 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.386 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.387 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:35.388 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:35.389 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.391 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.391 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.392 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:35.393 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:35.394 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.395 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.396 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:35.397 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:35.398 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.185
Scenario Outline Check 791adbe3-772f-42cb-a3be-5a617bcecef0
Check href links in metadata record van 791adbe3-772f-42cb-a3be-5a617bcecef0
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.008
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.533
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:35.690 [print] title:Zeegebieden (INSPIRE geharmoniseerd)
* print title 0.000
15:10:35.690 [print] Zeegebieden (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:35.691 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:35.692 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"791adbe3-772f-42cb-a3be-5a617bcecef0","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.005
* print nlinks 0.003
15:10:35.708 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"
]
* def id = "791adbe3-772f-42cb-a3be-5a617bcecef0" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.313
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:36.023 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:10:35.714 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:35.716 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"
}
> * print "testing xlinkurl: 0.000
15:10:36.018 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.019 [print] testing xlinkurl:http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:36.021 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
15:10:36.022 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.430
Scenario Outline Check db8d613f-5edc-4467-9cc0-e2dcfb9d64a8
Check href links in metadata record van db8d613f-5edc-4467-9cc0-e2dcfb9d64a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:35.923 [print] title:Statistical Units Grid
* print title 0.000
15:10:35.924 [print] Statistical Units Grid
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:35.926 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:35.929 [print] organisation: [
  "Statistics Netherlands",
  "Statistics Netherlands",
  "Statistics Netherlandds",
  "Statistics Netherlands"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"db8d613f-5edc-4467-9cc0-e2dcfb9d64a8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.017
* print nlinks 0.000
15:10:35.953 [print] [
  "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs",
  ""
]
* def id = "db8d613f-5edc-4467-9cc0-e2dcfb9d64a8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.440
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 426, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:36.395 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"
}
> * print "testing xlinkurl: 0.001
15:10:35.958 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:35.958 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs
> Given url link 0.000
> When method HEAD 0.427
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 426, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
15:10:36.385 status code was: 400, expected: 200, response time: 426, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.003
15:10:36.386 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 426, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
15:10:36.389 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.391 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:36.392 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:36.393 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.271
Scenario Outline Check 2cc2c30c-91b8-412a-a060-e84d25272581
Check href links in metadata record van 2cc2c30c-91b8-412a-a060-e84d25272581
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2cc2c30c-91b8-412a-a060-e84d25272581' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2cc2c30c-91b8-412a-a060-e84d25272581' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:36.138 [print] title:Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* print title 0.000
15:10:36.139 [print] Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:36.140 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:36.142 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2cc2c30c-91b8-412a-a060-e84d25272581","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:36.152 [print] [
  "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"
]
* def id = "2cc2c30c-91b8-412a-a060-e84d25272581" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.367
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:36.520 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"
}
> * print "testing xlinkurl: 0.001
15:10:36.156 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.157 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
> Given url link 0.000
> When method HEAD 0.362
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:36.520 javax.net.ssl.SSLException: Connection reset, http call failed after 362 milliseconds for URL: https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
15:10:36.520 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.194
Scenario Outline Check 83dab947-387b-49df-8ad2-32bb10d46d38
Check href links in metadata record van 83dab947-387b-49df-8ad2-32bb10d46d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '83dab947-387b-49df-8ad2-32bb10d46d38' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '83dab947-387b-49df-8ad2-32bb10d46d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:36.486 [print] title:Geluidkaart Schiphol 2016 (Lden)
* print title 0.000
15:10:36.486 [print] Geluidkaart Schiphol 2016 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:36.487 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:36.489 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"83dab947-387b-49df-8ad2-32bb10d46d38","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:36.493 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"
]
* def id = "83dab947-387b-49df-8ad2-32bb10d46d38" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.339
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 335, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
15:10:36.833 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 335, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"
}
> * print "testing xlinkurl: 0.000
15:10:36.497 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.497 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38
> Given url link 0.000
> When method HEAD 0.335
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 335, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
15:10:36.833 status code was: 500, expected: 200, response time: 335, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.172
Scenario Outline Check 5951efa2-1ff3-4763-a966-a2f5497679ee
Check href links in metadata record van 5951efa2-1ff3-4763-a966-a2f5497679ee
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.537
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:36.566 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:36.567 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:36.568 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:36.569 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5951efa2-1ff3-4763-a966-a2f5497679ee","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:36.577 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"
]
* def id = "5951efa2-1ff3-4763-a966-a2f5497679ee" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.314
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:36.893 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:36.590 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.590 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"
}
> * print "testing xlinkurl: 0.001
15:10:36.891 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.892 [print] testing xlinkurl:http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:36.893 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
15:10:36.893 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.293
Scenario Outline Check f2f86edf-ac3a-48e8-9292-0544da2d7645
Check href links in metadata record van f2f86edf-ac3a-48e8-9292-0544da2d7645
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.554
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:36.954 [print] title:Emissies naar het riool in 2015 vanuit de industrie
* print title 0.000
15:10:36.955 [print] Emissies naar het riool in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:36.956 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:36.958 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f2f86edf-ac3a-48e8-9292-0544da2d7645","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.001
15:10:36.968 [print] [
  "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"
]
* def id = "f2f86edf-ac3a-48e8-9292-0544da2d7645" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:37.331 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"
}
> * print "testing xlinkurl: 0.000
15:10:36.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:36.974 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:37.331 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
15:10:37.331 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.708
Scenario Outline Check 5a1adb58-0bbe-425d-b0fe-577a6c0a4228
Check href links in metadata record van 5a1adb58-0bbe-425d-b0fe-577a6c0a4228
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.009
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.615
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:37.149 [print] title:Actueel Hoogtebestand Nederland 1 (AHN1)
* print title 0.000
15:10:37.150 [print] Actueel Hoogtebestand Nederland 1 (AHN1)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:37.152 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.006
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:37.160 [print] organisation: [
  "Rijkswaterstaat",
  "stuurgroep AHN",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5a1adb58-0bbe-425d-b0fe-577a6c0a4228","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.007
* print nlinks 0.002
15:10:37.173 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "5a1adb58-0bbe-425d-b0fe-577a6c0a4228" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.528
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:37.705 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228"
}
> * print "testing xlinkurl: 0.002
15:10:37.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.181 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.001
15:10:37.501 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.502 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:10:37.702 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:37.702 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:10:37.704 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.704 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:37.704 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:37.704 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.332
Scenario Outline Check 8de2f5eb-b09f-4f6d-8397-8878a1b86238
Check href links in metadata record van 8de2f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.542
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:37.072 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* print title 0.000
15:10:37.073 [print] Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:37.075 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.002
15:10:37.079 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8de2f5eb-b09f-4f6d-8397-8878a1b86238","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.002
15:10:37.088 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "8de2f5eb-b09f-4f6d-8397-8878a1b86238" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.889
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:37.979 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.001
15:10:37.094 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.095 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.356
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.001
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:10:37.455 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.455 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:37.656 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:37.657 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:37.660 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.661 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:37.975 status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:37.976 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:37.977 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.978 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:37.979 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:37.979 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.325
Scenario Outline Check tbjk534p-wubf-crbp-cj25-d4161160gfim
Check href links in metadata record van tbjk534p-wubf-crbp-cj25-d4161160gfim
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.602
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:37.443 [print] title:Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* print title 0.000
15:10:37.443 [print] Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:37.446 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.003
15:10:37.450 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"tbjk534p-wubf-crbp-cj25-d4161160gfim","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.008
* def xlinks = get response /GetRecordByIdResponse//@href 0.005
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.006
15:10:37.473 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "tbjk534p-wubf-crbp-cj25-d4161160gfim" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.846
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:38.321 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim"
}
> * print "testing xlinkurl: 0.001
15:10:37.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:37.483 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:10:37.798 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.798 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:10:37.997 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:37.998 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:10:37.999 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.000 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.320
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:38.321 status code was: 500, expected: 200, response time: 316, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.564
Scenario Outline Check eu-cb527d-f6db-4835-b0cd-deb245241254
Check href links in metadata record van eu-cb527d-f6db-4835-b0cd-deb245241254
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:37.430 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* print title 0.000
15:10:37.431 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:37.433 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "beheerPDOK@kadaster.nl",
  "",
  "beheerPDOK@kadaster.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:37.436 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Beheer PDOK",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-cb527d-f6db-4835-b0cd-deb245241254","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.016
* def xlinks = get response /GetRecordByIdResponse//@href 0.007
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.005
15:10:37.466 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "eu-cb527d-f6db-4835-b0cd-deb245241254" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.499
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1421, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:39.968 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254"
}
> * print "testing xlinkurl: 0.004
15:10:37.477 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.478 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.001
15:10:37.793 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.794 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:37.995 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.001
15:10:37.995 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:37.997 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:37.997 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 1.636
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1421, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
15:10:39.634 status code was: 404, expected: 200, response time: 1421, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:39.635 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1421, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
15:10:39.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.637 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.330
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:39.968 status code was: 500, expected: 200, response time: 330, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.697
Scenario Outline Check be1b1514-8d1f-48e1-9624-fee9b784138b
Check href links in metadata record van be1b1514-8d1f-48e1-9624-fee9b784138b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.002
15:10:37.485 [print] title:Vaarwegmarkeringen Nederland
* print title 0.000
15:10:37.486 [print] Vaarwegmarkeringen Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:37.488 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:37.490 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"be1b1514-8d1f-48e1-9624-fee9b784138b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:37.497 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "be1b1514-8d1f-48e1-9624-fee9b784138b" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.557
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:38.055 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b"
}
> * print "testing xlinkurl: 0.001
15:10:37.506 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:37.507 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b
> Given url link 0.000
> When method HEAD 0.330
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.003
15:10:37.843 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:37.845 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:38.047 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.001
15:10:38.047 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:38.050 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
15:10:38.052 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:38.053 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:38.053 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.327
Scenario Outline Check 9dd9bf30-36e6-45ae-b368-bdef2720bdde
Check href links in metadata record van 9dd9bf30-36e6-45ae-b368-bdef2720bdde
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:38.223 [print] title:Bodemkundig boormonsterprofiel onder INSPIRE
* print title 0.000
15:10:38.224 [print] Bodemkundig boormonsterprofiel onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.006
15:10:38.232 [print] [
  "info@dinoloket.nl",
  "geodesk.cgi@wur.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:38.234 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "Alterra, Wageningen UR",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9dd9bf30-36e6-45ae-b368-bdef2720bdde","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:38.239 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "9dd9bf30-36e6-45ae-b368-bdef2720bdde" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.398
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:39.640 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"
}
> * print "testing xlinkurl: 0.000
15:10:38.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.244 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
15:10:38.525 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.000
15:10:38.527 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
15:10:38.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.529 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:10:38.730 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.001
15:10:38.730 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
15:10:38.731 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.732 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.594
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:39.327 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:39.327 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:39.328 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.328 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:39.640 status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.374
Scenario Outline Check edf79e6a-d73d-4def-8d22-0f495cc76a73
Check href links in metadata record van edf79e6a-d73d-4def-8d22-0f495cc76a73
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.366
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:38.358 [print] title:Bronbestanden waterkwaliteit
* print title 0.000
15:10:38.358 [print] Bronbestanden waterkwaliteit
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:38.359 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:38.360 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"edf79e6a-d73d-4def-8d22-0f495cc76a73","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "edf79e6a-d73d-4def-8d22-0f495cc76a73" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
1.205
Scenario Outline Check 3e57ce43-7707-43ed-a4b9-72b3a6d812f8
Check href links in metadata record van 3e57ce43-7707-43ed-a4b9-72b3a6d812f8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.007
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:38.615 [print] title:Geluidkaart hoofdspoornet 2011 (Lnight)
* print title 0.000
15:10:38.615 [print] Geluidkaart hoofdspoornet 2011 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:38.616 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:38.617 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3e57ce43-7707-43ed-a4b9-72b3a6d812f8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:38.621 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"
]
* def id = "3e57ce43-7707-43ed-a4b9-72b3a6d812f8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.325
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
15:10:38.948 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"
}
> * print "testing xlinkurl: 0.000
15:10:38.633 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.633 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
15:10:38.947 status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.757
Scenario Outline Check c2225e5d-b46f-4e38-8445-ab10fd40c0dc
Check href links in metadata record van c2225e5d-b46f-4e38-8445-ab10fd40c0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:38.846 [print] title:Blokindeling Nederlands Continentaal Plat
* print title 0.000
15:10:38.847 [print] Blokindeling Nederlands Continentaal Plat
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:38.848 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:38.849 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c2225e5d-b46f-4e38-8445-ab10fd40c0dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:38.854 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"
]
* def id = "c2225e5d-b46f-4e38-8445-ab10fd40c0dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.614
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
15:10:39.469 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:38.858 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:38.858 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"
}
> * print "testing xlinkurl: 0.000
15:10:39.159 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.160 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
15:10:39.469 status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.662
Scenario Outline Check eu-f297898-2640-44c2-bbe9-c0480da83794
Check href links in metadata record van eu-f297898-2640-44c2-bbe9-c0480da83794
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.001
And param id = 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.556
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:38.924 [print] title:Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* print title 0.000
15:10:38.924 [print] Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:38.925 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:38.927 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-f297898-2640-44c2-bbe9-c0480da83794","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.006
* print nlinks 0.000
15:10:38.940 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "eu-f297898-2640-44c2-bbe9-c0480da83794" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.549
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:39.491 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794"
}
> * print "testing xlinkurl: 0.000
15:10:38.946 [print]
> * def link = __arg.link 0.004
> * print "testing xlinkurl:" + link 0.000
15:10:38.951 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794
> Given url link 0.000
> When method HEAD 0.323
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.000
15:10:39.276 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.277 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:10:39.478 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.001
15:10:39.478 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:10:39.480 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.481 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:39.482 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:39.482 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.544
Scenario Outline Check c5c4a6d6-b850-473c-8ab5-af9c2c550809
Check href links in metadata record van c5c4a6d6-b850-473c-8ab5-af9c2c550809
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:39.473 [print] title:Administratieve Eenheden
* print title 0.000
15:10:39.473 [print] Administratieve Eenheden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:39.474 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:39.475 [print] organisation: [
  "Kadaster",
  "Kadaster en Openbare Registers",
  "Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c5c4a6d6-b850-473c-8ab5-af9c2c550809","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.010
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:39.486 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"
]
* def id = "c5c4a6d6-b850-473c-8ab5-af9c2c550809" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.003
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:39.491 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"
}
> * print "testing xlinkurl: 0.000
15:10:39.490 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:39.490 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:39.491 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
15:10:39.491 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.923
Scenario Outline Check be6551de-a709-4c6d-a5e2-f63f0cf038ba
Check href links in metadata record van be6551de-a709-4c6d-a5e2-f63f0cf038ba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.012
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.562
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.049 [print] title:Amplitude van het getij op de Noordzee
* print title 0.000
15:10:40.049 [print] Amplitude van het getij op de Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:40.051 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:40.054 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"be6551de-a709-4c6d-a5e2-f63f0cf038ba","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:40.061 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"
]
* def id = "be6551de-a709-4c6d-a5e2-f63f0cf038ba" 0.010
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.662
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
15:10:40.735 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:10:40.076 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:40.078 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.341
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"
}
> * print "testing xlinkurl: 0.000
15:10:40.421 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.421 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
15:10:40.734 status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.950
Scenario Outline Check 6050578f-0010-4bfa-b013-c8617b80ba62
Check href links in metadata record van 6050578f-0010-4bfa-b013-c8617b80ba62
Steps
Given path 'geonetwork/srv/dut/inspire' 0.005
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6050578f-0010-4bfa-b013-c8617b80ba62' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.659
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6050578f-0010-4bfa-b013-c8617b80ba62' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.159 [print] title:Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* print title 0.002
15:10:40.162 [print] Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.002
15:10:40.165 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.166 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6050578f-0010-4bfa-b013-c8617b80ba62","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:40.171 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "6050578f-0010-4bfa-b013-c8617b80ba62" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.637
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 307, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:40.811 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"
}
> * print "testing xlinkurl: 0.001
15:10:40.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.180 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 307, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
15:10:40.489 status code was: 404, expected: 200, response time: 307, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:40.489 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 307, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
15:10:40.490 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.490 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.320
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:40.810 status code was: 500, expected: 200, response time: 319, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.245
Scenario Outline Check a5f961e9-ebdd-41e2-b8e8-ab33ed340a83
Check href links in metadata record van a5f961e9-ebdd-41e2-b8e8-ab33ed340a83
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.622
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.117 [print] title:Adressen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:40.118 [print] Adressen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:40.120 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.122 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a5f961e9-ebdd-41e2-b8e8-ab33ed340a83","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:40.128 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"
]
* def id = "a5f961e9-ebdd-41e2-b8e8-ab33ed340a83" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.305
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:40.435 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:40.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.134 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"
}
> * print "testing xlinkurl: 0.000
15:10:40.434 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.434 [print] testing xlinkurl:http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:40.435 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
15:10:40.435 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.356
Scenario Outline Check 08b27bf0-e34a-4b30-9eac-5edadfb6a288
Check href links in metadata record van 08b27bf0-e34a-4b30-9eac-5edadfb6a288
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.606
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.251 [print] title:Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* print title 0.000
15:10:40.252 [print] Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:40.253 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.254 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"08b27bf0-e34a-4b30-9eac-5edadfb6a288","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:40.258 [print] [
  "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"
]
* def id = "08b27bf0-e34a-4b30-9eac-5edadfb6a288" 0.009
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.366
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:40.635 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"
}
> * print "testing xlinkurl: 0.000
15:10:40.272 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.272 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
> Given url link 0.000
> When method HEAD 0.361
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:40.634 javax.net.ssl.SSLException: Connection reset, http call failed after 361 milliseconds for URL: https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
15:10:40.635 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.207
Scenario Outline Check 14657c9b-91e4-4355-8563-2911ad0e78e4
Check href links in metadata record van 14657c9b-91e4-4355-8563-2911ad0e78e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.570
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.543 [print] title:Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:40.543 [print] Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:40.544 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.545 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"14657c9b-91e4-4355-8563-2911ad0e78e4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:40.551 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"
]
* def id = "14657c9b-91e4-4355-8563-2911ad0e78e4" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.320
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:40.874 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:10:40.573 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.574 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"
}
> * print "testing xlinkurl: 0.000
15:10:40.873 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.873 [print] testing xlinkurl:http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:40.874 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
15:10:40.874 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.249
Scenario Outline Check 58d39928-f502-48c9-a8c1-03244dc181bf
Check href links in metadata record van 58d39928-f502-48c9-a8c1-03244dc181bf
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58d39928-f502-48c9-a8c1-03244dc181bf' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.574
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58d39928-f502-48c9-a8c1-03244dc181bf' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.815 [print] title:Geluidkaart Schiphol 2016 (Lnight)
* print title 0.000
15:10:40.815 [print] Geluidkaart Schiphol 2016 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:40.816 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.817 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"58d39928-f502-48c9-a8c1-03244dc181bf","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:40.820 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"
]
* def id = "58d39928-f502-48c9-a8c1-03244dc181bf" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.334
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
15:10:41.155 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"
}
> * print "testing xlinkurl: 0.000
15:10:40.823 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:40.823 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf
> Given url link 0.000
> When method HEAD 0.330
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
15:10:41.154 status code was: 500, expected: 200, response time: 329, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.052
Scenario Outline Check 25294679-adb9-4c39-a93b-6954ff9414ac
Check href links in metadata record van 25294679-adb9-4c39-a93b-6954ff9414ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '25294679-adb9-4c39-a93b-6954ff9414ac' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25294679-adb9-4c39-a93b-6954ff9414ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:40.993 [print] title:Waterstanden en afvoeren verwacht - Rijkswaterstaat
* print title 0.000
15:10:40.994 [print] Waterstanden en afvoeren verwacht - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:40.995 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:40.996 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"25294679-adb9-4c39-a93b-6954ff9414ac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:41.000 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "25294679-adb9-4c39-a93b-6954ff9414ac" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.747
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 214, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:41.753 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac"
}
> * print "testing xlinkurl: 0.000
15:10:41.013 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.014 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.002
15:10:41.327 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.328 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:10:41.529 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:10:41.529 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:10:41.530 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.531 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.216
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 214, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:10:41.748 status code was: 404, expected: 200, response time: 214, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:41.748 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 214, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:10:41.749 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.750 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:41.752 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:41.752 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.193
Scenario Outline Check b4ae622c-6201-49d8-bd2e-f7fce9206a1e
Check href links in metadata record van b4ae622c-6201-49d8-bd2e-f7fce9206a1e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:41.281 [print] title:Gebouwen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:41.281 [print] Gebouwen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:10:41.284 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:41.285 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b4ae622c-6201-49d8-bd2e-f7fce9206a1e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.001
15:10:41.293 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"
]
* def id = "b4ae622c-6201-49d8-bd2e-f7fce9206a1e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.319
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.614 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.001
15:10:41.299 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.300 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"
}
> * print "testing xlinkurl: 0.001
15:10:41.596 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.597 [print] testing xlinkurl:http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
> Given url link 0.000
> When method HEAD 0.016
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.613 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
15:10:41.613 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.195
Scenario Outline Check e80ad426-1392-4349-9f80-14dae5f1bf57
Check href links in metadata record van e80ad426-1392-4349-9f80-14dae5f1bf57
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.546
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.002
* print 'title:' + title 0.002
15:10:41.367 [print] title:Kadastrale Percelen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:41.368 [print] Kadastrale Percelen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:41.370 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.008
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:41.379 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e80ad426-1392-4349-9f80-14dae5f1bf57","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:41.387 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"
]
* def id = "e80ad426-1392-4349-9f80-14dae5f1bf57" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.314
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.703 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:41.397 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.398 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"
}
> * print "testing xlinkurl: 0.000
15:10:41.698 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.698 [print] testing xlinkurl:http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.701 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
15:10:41.702 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.605
Scenario Outline Check 74aca3eb-c38b-4214-9537-e0abc69e11b5
Check href links in metadata record van 74aca3eb-c38b-4214-9537-e0abc69e11b5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.529
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:41.409 [print] title:Luchtfoto 2017 25cm RGB open data
* print title 0.000
15:10:41.409 [print] Luchtfoto 2017 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:41.410 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.002
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:41.415 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"74aca3eb-c38b-4214-9537-e0abc69e11b5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.004
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:41.425 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017",
  "",
  "",
  ""
]
* def id = "74aca3eb-c38b-4214-9537-e0abc69e11b5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.034
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b017}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.462 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"
}
> * print "testing xlinkurl: 0.006
15:10:41.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.442 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.445 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
15:10:41.446 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.002
15:10:41.447 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:41.450 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.451 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.452 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:41.452 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:41.453 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.455 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.455 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.458 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:41.458 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:41.459 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.460 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.461 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.461 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:41.461 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.281
Scenario Outline Check d9baa847-4652-4588-abe1-0b050f40f27f
Check href links in metadata record van d9baa847-4652-4588-abe1-0b050f40f27f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:41.677 [print] title:Ziekenhuizen in Nederland (september 2013)
* print title 0.000
15:10:41.677 [print] Ziekenhuizen in Nederland (september 2013)
* def email = get response //electronicMailAddress/CharacterString 0.006
* print email 0.000
15:10:41.684 [print] [
  "atlas@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:41.685 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d9baa847-4652-4588-abe1-0b050f40f27f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:41.692 [print] [
  "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"
]
* def id = "d9baa847-4652-4588-abe1-0b050f40f27f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.381
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.075 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"
}
> * print "testing xlinkurl: 0.001
15:10:41.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.714 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
> Given url link 0.000
> When method HEAD 0.360
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.074 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
15:10:42.074 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.379
Scenario Outline Check ed960299-a147-4c1a-bc57-41ff83a2264f
Check href links in metadata record van ed960299-a147-4c1a-bc57-41ff83a2264f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.359
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:41.825 [print] title:Bodemkaart50000_versie2014
* print title 0.000
15:10:41.825 [print] Bodemkaart50000_versie2014
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:41.827 [print] [
  "fokke.brouwer@wur.nl",
  "GeoDesk@wur.nl",
  "fokke.brouwer@wur.nl",
  "GeoDesk@wur.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:41.830 [print] organisation: [
  "Wageningen Environmental Research",
  "Wageningen Environmental Research (Alterra)",
  "Wageningen Environmental Research",
  "Wageningen Environmental Research (Alterra)",
  "ALTERRA en voorafgaande instituten",
  "ALTERRA en voorafgaande instituten",
  "Alterra",
  "Alterra",
  "Alterra Wageningen UR",
  "Alterra"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ed960299-a147-4c1a-bc57-41ff83a2264f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.011
* print nlinks 0.005
15:10:41.851 [print] [
  "h",
  "t",
  "t",
  "p",
  ":",
  "/",
  "/",
  "s",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  ".",
  "i",
  "s",
  "o",
  ".",
  "o",
  "r",
  "g",
  "/",
  "i",
  "t",
  "t",
  "f",
  "/",
  "P",
  "u",
  "b",
  "l",
  "i",
  "c",
  "l",
  "y",
  "A",
  "v",
  "a",
  "i",
  "l",
  "a",
  "b",
  "l",
  "e",
  "S",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  "/",
  "I",
  "S",
  "O",
  "_",
  "1",
  "9",
  "1",
  "3",
  "9",
  "_",
  "S",
  "c",
  "h",
  "e",
  "m",
  "a",
  "s",
  "/",
  "r",
  "e",
  "s",
  "o",
  "u",
  "r",
  "c",
  "e",
  "s",
  "/",
  "u",
  "o",
  "m",
  "/",
  "g",
  "m",
  "x",
  "U",
  "o",
  "m",
  ".",
  "x",
  "m",
  "l",
  "#",
  "m"
]
* def id = "ed960299-a147-4c1a-bc57-41ff83a2264f" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.585
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=:}, {link=/}, {link=/}, {link=s}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=.}, {link=i}, {link=s}, {link=o}, {link=.}, {link=o}, {link=r}, {link=g}, {link=/}, {link=i}, {link=t}, {link=t}, {link=f}, {link=/}, {link=P}, {link=u}, {link=b}, {link=l}, {link=i}, {link=c}, {link=l}, {link=y}, {link=A}, {link=v}, {link=a}, {link=i}, {link=l}, {link=a}, {link=b}, {link=l}, {link=e}, {link=S}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=/}, {link=I}, {link=S}, {link=O}, {link=_}, {link=1}, {link=9}, {link=1}, {link=3}, {link=9}, {link=_}, {link=S}, {link=c}, {link=h}, {link=e}, {link=m}, {link=a}, {link=s}, {link=/}, {link=r}, {link=e}, {link=s}, {link=o}, {link=u}, {link=r}, {link=c}, {link=e}, {link=s}, {link=/}, {link=u}, {link=o}, {link=m}, {link=/}, {link=g}, {link=m}, {link=x}, {link=U}, {link=o}, {link=m}, {link=.}, {link=x}, {link=m}, {link=l}, {link=#}, {link=m}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.440 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.001
15:10:41.860 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
15:10:41.862 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.863 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:10:41.864 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:10:41.866 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.867 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.867 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.869 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:41.869 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:10:41.871 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.872 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.872 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.874 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:41.874 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:10:41.876 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.877 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.877 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.878 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:10:41.879 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:41.880 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.882 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.882 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:41.883 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.002
15:10:41.885 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:41.887 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.888 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.890 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:41.890 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:10:41.892 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.893 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.894 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.895 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:41.895 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:41.897 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.898 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.899 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.900 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:41.901 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:10:41.902 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.903 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.904 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.905 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:41.906 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:10:41.907 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.908 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.909 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.910 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:41.911 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:10:41.912 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.914 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.915 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:10:41.916 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:10:41.917 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.918 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.919 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.920 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:10:41.921 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:10:41.922 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.924 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.925 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:41.926 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:41.927 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.928 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.929 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.930 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:41.931 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:10:41.932 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.933 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.934 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.935 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:10:41.936 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:41.937 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.938 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.939 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.940 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:41.941 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:10:41.942 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.944 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.945 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:10:41.945 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
15:10:41.947 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.948 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.949 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.950 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:10:41.951 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
15:10:41.952 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.954 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.955 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.956 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:41.956 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:10:41.958 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.959 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.959 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.960 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:41.961 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:10:41.962 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.964 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.964 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.966 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:10:41.966 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:10:41.967 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.969 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.969 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.970 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:41.971 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:41.972 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.974 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.975 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:41.976 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:10:41.977 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.978 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.979 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.980 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:10:41.980 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.002
15:10:41.982 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.985 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.986 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.987 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:41.988 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:10:41.989 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.991 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.992 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:10:41.993 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.001
15:10:41.994 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:41.996 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:41.997 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:41.998 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:10:42.000 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.002 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.003 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:42.003 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:10:42.005 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.006 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.006 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.007 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:10:42.008 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:10:42.009 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.011 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.011 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.012 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:42.013 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.001
15:10:42.014 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.016 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.017 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.018 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
15:10:42.018 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:10:42.020 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.021 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.021 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.022 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:10:42.023 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.000
15:10:42.024 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.026 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.027 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
15:10:42.028 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:10:42.029 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.030 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.031 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.032 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:10:42.033 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:10:42.034 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.035 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.036 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.037 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:10:42.038 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:10:42.039 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.041 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.043 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:10:42.044 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.002
15:10:42.046 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.049 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.050 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.051 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:10:42.052 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "y"
}
> * print "testing xlinkurl: 0.002
15:10:42.053 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.056 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.058 [print] testing xlinkurl:y
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.059 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: y
15:10:42.060 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "A"
}
> * print "testing xlinkurl: 0.004
15:10:42.062 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
15:10:42.074 [print] testing xlinkurl:A
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.075 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: A
15:10:42.075 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.000
15:10:42.075 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.076 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.076 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.077 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
15:10:42.077 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:10:42.081 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.090 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.090 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.091 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:42.094 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
15:10:42.095 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.097 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.098 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.099 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:10:42.099 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.001
15:10:42.102 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.104 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:42.106 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.107 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:10:42.108 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:10:42.110 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:42.112 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.114 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:42.115 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.001
15:10:42.117 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.118 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.119 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.121 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
15:10:42.122 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.001
15:10:42.124 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.126 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.127 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.129 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:10:42.130 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:10:42.132 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.133 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.133 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.134 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:10:42.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:10:42.136 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.137 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.137 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.138 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:10:42.139 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:10:42.139 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.141 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.141 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:10:42.142 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:10:42.142 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.144 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.144 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.146 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:42.146 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:10:42.147 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.148 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.148 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.149 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:10:42.149 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:10:42.150 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.151 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.152 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.152 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:10:42.153 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.001
15:10:42.153 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.154 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.155 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.155 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:42.156 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:42.156 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.157 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.157 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.158 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:42.158 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:10:42.159 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.160 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.160 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.161 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:10:42.161 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:42.162 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.164 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.165 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:42.165 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:10:42.166 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.167 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.168 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:42.168 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "I"
}
> * print "testing xlinkurl: 0.000
15:10:42.169 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.170 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.171 [print] testing xlinkurl:I
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.171 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: I
15:10:42.172 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.001
15:10:42.172 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.174 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.174 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.175 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:10:42.175 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "O"
}
> * print "testing xlinkurl: 0.000
15:10:42.176 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.176 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.177 [print] testing xlinkurl:O
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.177 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: O
15:10:42.178 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.000
15:10:42.178 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.179 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.180 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
15:10:42.180 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
15:10:42.181 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.181 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.182 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.182 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:10:42.183 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
15:10:42.183 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.184 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.185 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.186 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
15:10:42.186 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
15:10:42.187 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.188 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.189 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:10:42.189 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.000
15:10:42.190 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.191 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.192 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
15:10:42.193 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
15:10:42.194 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.194 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.195 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.196 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
15:10:42.196 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.000
15:10:42.197 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.200 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.201 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
15:10:42.201 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:10:42.202 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.203 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.203 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.204 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:10:42.204 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:10:42.205 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.206 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.206 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.211 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:10:42.211 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.001
15:10:42.213 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.214 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.214 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.220 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:10:42.221 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
15:10:42.222 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.224 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:42.226 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.227 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:10:42.228 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:10:42.234 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.236 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.238 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.238 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.009
15:10:42.238 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.249 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
15:10:42.252 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.253 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:10:42.253 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:42.254 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.255 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.255 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.256 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:42.256 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.006
15:10:42.257 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.264 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.264 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.015
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.279 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:42.280 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
15:10:42.281 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.282 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.283 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.284 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:42.285 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:10:42.285 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.288 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.289 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.289 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:10:42.290 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.002
15:10:42.290 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.294 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.294 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.295 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:42.296 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.001
15:10:42.297 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.299 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.299 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.305 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:42.308 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.002
15:10:42.310 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.315 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.316 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:10:42.316 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:42.316 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.318 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.318 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.318 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:42.319 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:10:42.319 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.320 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.320 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.321 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:10:42.321 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:10:42.322 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.323 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.323 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.324 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:10:42.324 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:42.325 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.326 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.326 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.327 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:42.327 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:10:42.327 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.329 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.329 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.330 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:42.331 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:10:42.331 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.332 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.333 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.333 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:10:42.334 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:10:42.335 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.339 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.003
15:10:42.343 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.344 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:42.344 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.002
15:10:42.345 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.349 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.349 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.350 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
15:10:42.350 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.352 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.353 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:10:42.353 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.006
15:10:42.354 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.363 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.363 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.364 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:10:42.365 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:10:42.366 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.368 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.368 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.369 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.370 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.000
15:10:42.371 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.372 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.373 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.374 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:10:42.375 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "U"
}
> * print "testing xlinkurl: 0.001
15:10:42.376 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.378 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.379 [print] testing xlinkurl:U
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.380 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: U
15:10:42.381 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:10:42.382 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.384 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.385 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:42.385 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:10:42.387 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.388 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.388 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.389 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.390 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.004
15:10:42.391 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.396 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.396 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.398 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:10:42.399 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.001
15:10:42.400 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.402 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.403 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:10:42.404 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:10:42.405 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.406 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.407 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.412 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.413 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.001
15:10:42.414 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.416 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.417 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.423 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:10:42.424 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "#"
}
> * print "testing xlinkurl: 0.001
15:10:42.425 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.427 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.428 [print] testing xlinkurl:#
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.429 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: #
15:10:42.429 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.004
15:10:42.431 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.435 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.437 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:42.438 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:10:42.439 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.321
Scenario Outline Check d24ccb35-e9d2-41bf-b231-43083fc0c76d
Check href links in metadata record van d24ccb35-e9d2-41bf-b231-43083fc0c76d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.542
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.003
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.005
15:10:42.310 [print] title:LCP emissies (Richtlijn Industriële emissies) 2016
* print title 0.000
15:10:42.310 [print] LCP emissies (Richtlijn Industriële emissies) 2016
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:10:42.313 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.002
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.008
15:10:42.325 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d24ccb35-e9d2-41bf-b231-43083fc0c76d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.010
* print nlinks 0.000
15:10:42.338 [print] [
  "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"
]
* def id = "d24ccb35-e9d2-41bf-b231-43083fc0c76d" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.369
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.709 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"
}
> * print "testing xlinkurl: 0.002
15:10:42.346 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
15:10:42.351 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.709 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
15:10:42.709 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.246
Scenario Outline Check 36a7e8cb-8300-4602-93d2-135943365a6f
Check href links in metadata record van 36a7e8cb-8300-4602-93d2-135943365a6f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '36a7e8cb-8300-4602-93d2-135943365a6f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.495
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '36a7e8cb-8300-4602-93d2-135943365a6f' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:42.576 [print] title:Monitoring stations (Nitraatrichtlijn) diepe filters
* print title 0.001
15:10:42.578 [print] Monitoring stations (Nitraatrichtlijn) diepe filters
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:42.580 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:42.582 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"36a7e8cb-8300-4602-93d2-135943365a6f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.002
15:10:42.593 [print] [
  "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"
]
* def id = "36a7e8cb-8300-4602-93d2-135943365a6f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.364
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.960 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"
}
> * print "testing xlinkurl: 0.004
15:10:42.602 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:42.602 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:42.960 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
15:10:42.960 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.583
Scenario Outline Check adn73c4a-ef03-4785-b7f6-942e86b385f5
Check href links in metadata record van adn73c4a-ef03-4785-b7f6-942e86b385f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
15:10:42.965 [print] title:Bathymetrie Nederland - kust
* print title 0.000
15:10:42.966 [print] Bathymetrie Nederland - kust
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.003
15:10:42.970 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:42.972 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"adn73c4a-ef03-4785-b7f6-942e86b385f5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.000
15:10:42.982 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.523
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:43.507 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5"
}
> * print "testing xlinkurl: 0.001
15:10:42.988 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:42.989 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:10:43.301 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.302 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:10:43.503 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.002
15:10:43.504 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:10:43.506 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.507 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:43.507 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:43.507 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.108
Scenario Outline Check 9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c
Check href links in metadata record van 9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.623
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:43.340 [print] title:Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
15:10:43.341 [print] Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:43.343 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:43.345 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.004
15:10:43.356 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.733
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.091 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:43.362 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.363 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.348
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e"
}
> * print "testing xlinkurl: 0.000
15:10:43.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.713 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e
> Given url link 0.000
> When method HEAD 0.263
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:43.978 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.978 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.110
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.089 status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:44.089 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.090 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.090 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.091 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:44.091 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.345
Scenario Outline Check 34e6165f-1269-48d1-b255-0f05d163d692
Check href links in metadata record van 34e6165f-1269-48d1-b255-0f05d163d692
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e6165f-1269-48d1-b255-0f05d163d692' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.577
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e6165f-1269-48d1-b255-0f05d163d692' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:43.394 [print] title:Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* print title 0.000
15:10:43.394 [print] Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:43.396 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:43.398 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"34e6165f-1269-48d1-b255-0f05d163d692","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.002
15:10:43.406 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "34e6165f-1269-48d1-b255-0f05d163d692" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.878
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 59, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.285 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:43.410 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.411 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692"
}
> * print "testing xlinkurl: 0.003
15:10:43.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:43.716 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692
> Given url link 0.000
> When method HEAD 0.496
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:44.214 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.215 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 59, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.275 status code was: 404, expected: 200, response time: 59, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.005
15:10:44.276 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 59, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.282 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.282 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.283 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:44.284 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.289
Scenario Outline Check 41023936-009d-48ec-a90d-c966895463c1
Check href links in metadata record van 41023936-009d-48ec-a90d-c966895463c1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '41023936-009d-48ec-a90d-c966895463c1' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.550
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '41023936-009d-48ec-a90d-c966895463c1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:43.518 [print] title:Geluidszones rondom vliegvelden
* print title 0.001
15:10:43.519 [print] Geluidszones rondom vliegvelden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:43.521 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:43.524 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"41023936-009d-48ec-a90d-c966895463c1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.006
15:10:43.536 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "41023936-009d-48ec-a90d-c966895463c1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.858
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.396 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.001
15:10:43.542 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:43.543 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.345
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1"
}
> * print "testing xlinkurl: 0.000
15:10:43.890 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.890 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1
> Given url link 0.000
> When method HEAD 0.464
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:44.356 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.356 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.037
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.393 status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:44.393 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:44.394 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.395 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:44.395 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:44.396 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.784
Scenario Outline Check ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb
Check href links in metadata record van ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.682
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:43.809 [print] title:Wijk- en Buurtkaart 2018 versie 2
* print title 0.000
15:10:43.810 [print] Wijk- en Buurtkaart 2018 versie 2
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:10:43.812 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:43.814 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:43.820 [print] [
  ""
]
* def id = "ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb" 0.067
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.015
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:43.903 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.002
15:10:43.899 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:43.900 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:43.901 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:43.902 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.910
Scenario Outline Check eu-2c7040b-c448-451b-bf15-f2416ecaadd1
Check href links in metadata record van eu-2c7040b-c448-451b-bf15-f2416ecaadd1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:44.065 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* print title 0.001
15:10:44.067 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:44.068 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:44.072 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"eu-2c7040b-c448-451b-bf15-f2416ecaadd1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.001
15:10:44.081 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "eu-2c7040b-c448-451b-bf15-f2416ecaadd1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.669
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:44.754 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1"
}
> * print "testing xlinkurl: 0.011
15:10:44.098 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.099 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1
> Given url link 0.000
> When method HEAD 0.450
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
15:10:44.551 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.551 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:44.752 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:44.752 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:44.753 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.753 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:44.754 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:44.754 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.607
Scenario Outline Check 2daad588-11ef-47de-9832-6fe2c3b93e6d
Check href links in metadata record van 2daad588-11ef-47de-9832-6fe2c3b93e6d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:44.589 [print] title:Overstromingsrisicokaarten
* print title 0.000
15:10:44.589 [print] Overstromingsrisicokaarten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:44.591 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:44.594 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2daad588-11ef-47de-9832-6fe2c3b93e6d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:44.600 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "2daad588-11ef-47de-9832-6fe2c3b93e6d" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.544
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.147 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d"
}
> * print "testing xlinkurl: 0.003
15:10:44.609 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:44.611 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d
> Given url link 0.000
> When method HEAD 0.477
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
15:10:45.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.091 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.043
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.136 status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:45.138 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.140 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.145 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:45.146 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.577
Scenario Outline Check bc2c53f6-c908-4d7c-a6c0-78d9a2855640
Check href links in metadata record van bc2c53f6-c908-4d7c-a6c0-78d9a2855640
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.559
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:44.658 [print] title:Overstromingsgevaarkaarten
* print title 0.000
15:10:44.658 [print] Overstromingsgevaarkaarten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:44.659 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:44.660 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"bc2c53f6-c908-4d7c-a6c0-78d9a2855640","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.006
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.001
15:10:44.672 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "bc2c53f6-c908-4d7c-a6c0-78d9a2855640" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.501
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.175 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640"
}
> * print "testing xlinkurl: 0.001
15:10:44.676 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:44.678 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:45.125 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.126 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.038
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.165 status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:45.168 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.169 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.170 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.172 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:45.174 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.448
Scenario Outline Check wt-f5eb-b09f-4f6d-8397-8878a1b86238
Check href links in metadata record van wt-f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.576
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:44.867 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* print title 0.000
15:10:44.868 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:44.869 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:44.871 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-f5eb-b09f-4f6d-8397-8878a1b86238","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:44.877 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-f5eb-b09f-4f6d-8397-8878a1b86238" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.930
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:45.809 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.000
15:10:44.882 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.882 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:10:45.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.198 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:45.399 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:10:45.399 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:45.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:45.402 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.406
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 405, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:45.809 status code was: 500, expected: 200, response time: 405, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.318
Scenario Outline Check wt-3730-e750-485a-9c0c-39bf9be72cf9
Check href links in metadata record van wt-3730-e750-485a-9c0c-39bf9be72cf9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.539
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:44.939 [print] title:Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* print title 0.000
15:10:44.939 [print] Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:44.941 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:44.943 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-3730-e750-485a-9c0c-39bf9be72cf9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:44.948 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-3730-e750-485a-9c0c-39bf9be72cf9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.885
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 364, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:45.835 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 364, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9"
}
> * print "testing xlinkurl: 0.001
15:10:44.953 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:44.954 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:10:45.268 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.269 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:45.469 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:45.469 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:45.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.470 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.364
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 364, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:45.835 status code was: 500, expected: 200, response time: 364, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.169
Scenario Outline Check 998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
Check href links in metadata record van 998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.552
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:45.001 [print] title:Wet Ammoniak en Veehouderij gebieden
* print title 0.000
15:10:45.001 [print] Wet Ammoniak en Veehouderij gebieden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:45.002 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:45.004 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"998ba1dc-f6a6-49a3-a021-51f30d9b1d0e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:45.008 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "998ba1dc-f6a6-49a3-a021-51f30d9b1d0e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.808
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.818 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:45.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.013 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e"
}
> * print "testing xlinkurl: 0.000
15:10:45.311 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.311 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
> Given url link 0.000
> When method HEAD 0.439
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:45.752 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.752 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.054
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.806 status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:45.808 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 54, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:45.816 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.816 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:45.817 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:45.817 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.122
Scenario Outline Check c7d8d77b-8c47-4309-8c58-9b12b086407f
Check href links in metadata record van c7d8d77b-8c47-4309-8c58-9b12b086407f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.501
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:45.258 [print] title:Natuurnetwerk Nederland
* print title 0.000
15:10:45.258 [print] Natuurnetwerk Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:45.259 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:45.260 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c7d8d77b-8c47-4309-8c58-9b12b086407f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.011
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.006
15:10:45.280 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "c7d8d77b-8c47-4309-8c58-9b12b086407f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.801
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:46.083 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:45.285 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:45.286 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.293
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f"
}
> * print "testing xlinkurl: 0.002
15:10:45.583 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:45.585 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f
> Given url link 0.000
> When method HEAD 0.441
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
15:10:46.029 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
15:10:46.034 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:46.074 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:46.078 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:46.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.080 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:46.081 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:46.082 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.267
Scenario Outline Check krw2006-68b5-4ff3-94a4-9c24109ffd5e
Check href links in metadata record van krw2006-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:45.677 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* print title 0.000
15:10:45.677 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:45.678 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:45.679 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw2006-68b5-4ff3-94a4-9c24109ffd5e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:45.686 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw2006-68b5-4ff3-94a4-9c24109ffd5e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.866
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:46.553 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.001
15:10:45.690 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.691 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:10:46.008 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:46.009 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:46.210 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.005
15:10:46.210 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:46.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:46.218 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:46.545 status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:46.545 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:46.546 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.546 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:46.552 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:46.552 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.621
Scenario Outline Check 710c381c-ab2d-45d5-a45d-af2eba811e5f
Check href links in metadata record van 710c381c-ab2d-45d5-a45d-af2eba811e5f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.546
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:45.726 [print] title:Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* print title 0.000
15:10:45.727 [print] Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:45.729 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:45.731 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"710c381c-ab2d-45d5-a45d-af2eba811e5f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:45.736 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "710c381c-ab2d-45d5-a45d-af2eba811e5f" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.532
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:46.272 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f"
}
> * print "testing xlinkurl: 0.000
15:10:45.747 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:45.747 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f
> Given url link 0.000
> When method HEAD 0.320
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.000
15:10:46.069 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.069 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:10:46.270 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:46.270 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
15:10:46.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.272 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:46.272 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:46.272 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.150
Scenario Outline Check cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
Check href links in metadata record van cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:46.328 [print] title:Stiltegebieden
* print title 0.000
15:10:46.328 [print] Stiltegebieden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:46.329 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:46.329 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.003
15:10:46.336 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.813
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:47.151 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:46.342 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.343 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5"
}
> * print "testing xlinkurl: 0.000
15:10:46.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.659 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
> Given url link 0.000
> When method HEAD 0.454
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:47.115 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.115 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.033
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:47.149 status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:47.149 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 33, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:47.150 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.150 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:47.151 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:47.151 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.288
Scenario Outline Check f0821bfe-5a0a-11e9-8647-d663bd873d93
Check href links in metadata record van f0821bfe-5a0a-11e9-8647-d663bd873d93
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.566
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:46.388 [print] title:NB-wetgebieden buiten Natura 2000
* print title 0.000
15:10:46.389 [print] NB-wetgebieden buiten Natura 2000
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:46.391 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:46.392 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f0821bfe-5a0a-11e9-8647-d663bd873d93","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.004
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:46.404 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f0821bfe-5a0a-11e9-8647-d663bd873d93" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.858
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:47.264 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.003
15:10:46.415 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.416 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93"
}
> * print "testing xlinkurl: 0.000
15:10:46.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.713 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93
> Given url link 0.000
> When method HEAD 0.488
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:47.203 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.203 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.040
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:47.245 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.004
15:10:47.251 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:47.256 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.256 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:47.260 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:47.263 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.284
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeab
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeab
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeab' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.608
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeab' 0.003
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:46.453 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* print title 0.000
15:10:46.453 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:46.455 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:46.457 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeab","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:46.463 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeab" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.832
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.297 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab"
}
> * print "testing xlinkurl: 0.000
15:10:46.468 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.469 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:10:46.780 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.780 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:46.981 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:46.981 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:46.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.982 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.291 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:47.291 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.296 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.296 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.297 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:47.297 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.221
Scenario Outline Check 2e31680f-68b5-4ff3-94a4-9c24109ffd5e
Check href links in metadata record van 2e31680f-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:46.615 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* print title 0.000
15:10:46.615 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.001
15:10:46.618 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:46.621 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"2e31680f-68b5-4ff3-94a4-9c24109ffd5e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:46.627 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "2e31680f-68b5-4ff3-94a4-9c24109ffd5e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.841
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.469 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.000
15:10:46.630 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.631 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:10:46.956 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.957 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.157 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:47.158 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.158 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.158 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.467 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:47.467 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.468 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.469 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.469 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:47.469 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.267
Scenario Outline Check 622a632a-c57b-44a2-83a4-e51223d5f15g
Check href links in metadata record van 622a632a-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:46.833 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* print title 0.000
15:10:46.833 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:46.834 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:46.835 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"622a632a-c57b-44a2-83a4-e51223d5f15g","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.002
15:10:46.845 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "622a632a-c57b-44a2-83a4-e51223d5f15g" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.852
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 333, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.698 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.000
15:10:46.849 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:46.850 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:47.162 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.162 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.362 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:47.362 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.363 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.363 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.333
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 333, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.697 status code was: 500, expected: 200, response time: 333, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:47.697 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 333, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.697 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.698 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.698 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:47.698 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.251
Scenario Outline Check krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
Check href links in metadata record van krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:47.086 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* print title 0.000
15:10:47.087 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:47.088 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:47.089 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw-f7bb2351-9788-42ea-a58b-a5ee1842304e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:47.094 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw-f7bb2351-9788-42ea-a58b-a5ee1842304e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.864
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 325, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.960 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e"
}
> * print "testing xlinkurl: 0.000
15:10:47.098 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.099 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:47.414 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.414 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.615 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:47.615 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:47.617 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.617 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.325
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 325, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.943 status code was: 500, expected: 200, response time: 325, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:47.943 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 325, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:47.944 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.944 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:47.944 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:47.944 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.200
Scenario Outline Check a1960e70-22f4-4fd9-91a8-b605c6ceda3e
Check href links in metadata record van a1960e70-22f4-4fd9-91a8-b605c6ceda3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.528
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:47.686 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* print title 0.000
15:10:47.686 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:47.688 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:47.689 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a1960e70-22f4-4fd9-91a8-b605c6ceda3e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:47.692 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "a1960e70-22f4-4fd9-91a8-b605c6ceda3e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.831
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.525 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e"
}
> * print "testing xlinkurl: 0.000
15:10:47.696 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.696 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:48.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.012 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.212 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:48.212 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.214 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.214 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.524 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.257
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeag
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeag
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeag' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeag' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:47.832 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* print title 0.000
15:10:47.832 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:47.834 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:47.834 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeag","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:47.838 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeag" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.848
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:48.687 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag"
}
> * print "testing xlinkurl: 0.000
15:10:47.841 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.842 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:48.162 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.162 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.363 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:48.364 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.365 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.365 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.677 status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:48.678 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.679 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.679 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:48.679 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:48.679 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.339
Scenario Outline Check krw2006-c57b-44a2-83a4-e51223d5f15g
Check href links in metadata record van krw2006-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.647
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.017
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:47.965 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* print title 0.000
15:10:47.965 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:47.966 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:47.967 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw2006-c57b-44a2-83a4-e51223d5f15g","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:47.972 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw2006-c57b-44a2-83a4-e51223d5f15g" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.834
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:48.807 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.000
15:10:47.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:47.975 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:48.292 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.292 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.493 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:48.493 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.494 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.494 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.804 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:48.805 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.806 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.806 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:48.806 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:48.806 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.235
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbeac
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbeac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeac' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.560
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:48.034 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* print title 0.000
15:10:48.034 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.002
* print email 0.002
15:10:48.038 [print] [
  "servicedesk@ihw.nl",
  "servicedesk@ihw.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:48.040 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.002
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbeac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:48.047 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeac" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.830
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.880 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac"
}
> * print "testing xlinkurl: 0.000
15:10:48.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.053 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.003
15:10:48.366 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.367 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.566 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
15:10:48.566 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:48.568 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.569 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:48.879 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.298
Scenario Outline Check 891ddc2d-8949-4a45-be96-c65b87c41f13
Check href links in metadata record van 891ddc2d-8949-4a45-be96-c65b87c41f13
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.597
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:48.300 [print] title:Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* print title 0.000
15:10:48.300 [print] Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:48.301 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.006
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:48.308 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"891ddc2d-8949-4a45-be96-c65b87c41f13","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:48.313 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "891ddc2d-8949-4a45-be96-c65b87c41f13" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.846
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:49.162 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13"
}
> * print "testing xlinkurl: 0.000
15:10:48.324 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.000
15:10:48.327 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
15:10:48.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.643 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:10:48.844 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:48.844 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:10:48.846 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.846 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:49.162 status code was: 500, expected: 200, response time: 315, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.547
Scenario Outline Check 26103042-50a1-4ee5-9c5b-857a2f8b7680
Check href links in metadata record van 26103042-50a1-4ee5-9c5b-857a2f8b7680
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:48.482 [print] title:Wijk- en Buurtkaart 2017 versie 3
* print title 0.000
15:10:48.482 [print] Wijk- en Buurtkaart 2017 versie 3
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:48.484 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:48.486 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"26103042-50a1-4ee5-9c5b-857a2f8b7680","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:48.490 [print] [
  ""
]
* def id = "26103042-50a1-4ee5-9c5b-857a2f8b7680" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.013
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:48.505 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:48.501 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:48.502 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:48.503 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:48.503 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.660
Scenario Outline Check a9b7026e-0a81-4813-93bd-ba49e6f28502
Check href links in metadata record van a9b7026e-0a81-4813-93bd-ba49e6f28502
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:49.073 [print] title:NWB - Wegen
* print title 0.000
15:10:49.073 [print] NWB - Wegen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:49.074 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rws.n"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.075 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a9b7026e-0a81-4813-93bd-ba49e6f28502","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:49.081 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "a9b7026e-0a81-4813-93bd-ba49e6f28502" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.045
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.127 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502"
}
> * print "testing xlinkurl: 0.000
15:10:49.086 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.086 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
15:10:49.397 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.398 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:49.599 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:10:49.599 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
15:10:49.600 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.601 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:49.801 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:49.801 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:10:49.802 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.803 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.125 status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:50.125 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.126 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.127 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.127 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:50.127 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.645
Scenario Outline Check 6cde2ce7-3ecd-4785-b7b8-d62c3381efe9
Check href links in metadata record van 6cde2ce7-3ecd-4785-b7b8-d62c3381efe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.624
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:49.318 [print] title:Wijk- en Buurtkaart 2016 versie 3
* print title 0.000
15:10:49.319 [print] Wijk- en Buurtkaart 2016 versie 3
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:49.321 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.322 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6cde2ce7-3ecd-4785-b7b8-d62c3381efe9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.003
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.329 [print] [
  ""
]
* def id = "6cde2ce7-3ecd-4785-b7b8-d62c3381efe9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.004
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:49.334 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:49.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.333 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:49.334 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:49.334 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.029
Scenario Outline Check 4cda487b-c467-490c-a843-6563fec016be
Check href links in metadata record van 4cda487b-c467-490c-a843-6563fec016be
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4cda487b-c467-490c-a843-6563fec016be' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4cda487b-c467-490c-a843-6563fec016be' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:49.365 [print] title:Aansluitende zone volgens UNCLOS - Noordzee
* print title 0.000
15:10:49.365 [print] Aansluitende zone volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:49.367 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:49.369 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4cda487b-c467-490c-a843-6563fec016be","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.376 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"
]
* def id = "4cda487b-c467-490c-a843-6563fec016be" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.732
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
15:10:50.110 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:49.380 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.380 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"
}
> * print "testing xlinkurl: 0.000
15:10:49.682 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.682 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be
> Given url link 0.000
> When method HEAD 0.427
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
15:10:50.110 status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.236
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185e1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185e1' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185e1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:49.461 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* print title 0.000
15:10:49.462 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:49.464 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.465 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185e1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.470 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185e1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.825
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.297 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1"
}
> * print "testing xlinkurl: 0.000
15:10:49.474 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.474 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
15:10:49.785 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.785 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:10:49.985 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:49.985 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:10:49.986 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.987 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.295 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:50.295 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.296 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.296 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.297 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:50.297 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.424
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185f1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185f1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185f1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185f1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.008
* print 'title:' + title 0.001
15:10:49.701 [print] title:Richtlijn Overstromingsrisico - historische overstromingen EU2018
* print title 0.000
15:10:49.702 [print] Richtlijn Overstromingsrisico - historische overstromingen EU2018
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:49.705 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.706 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185f1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.710 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185f1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.939
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.651 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1"
}
> * print "testing xlinkurl: 0.000
15:10:49.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.714 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1
> Given url link 0.000
> When method HEAD 0.417
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
15:10:50.132 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.133 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:10:50.333 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:50.333 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:10:50.334 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.334 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.649 status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:50.649 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.650 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.650 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.651 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:50.651 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.224
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e3
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:49.874 [print] title:Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* print title 0.000
15:10:49.874 [print] Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:49.877 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.878 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.002
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.884 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e3" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.837
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.721 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
15:10:49.889 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.890 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:50.206 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.206 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:50.407 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:50.408 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:50.409 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.409 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.719 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:50.719 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.720 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.720 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.721 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:50.721 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.273
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e1
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.609
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:49.949 [print] title:Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* print title 0.000
15:10:49.950 [print] Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:49.951 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:49.953 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:49.958 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.827
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.787 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1"
}
> * print "testing xlinkurl: 0.000
15:10:49.962 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:49.962 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:50.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.274 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:50.476 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:50.476 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:50.477 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.477 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.784 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:50.785 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:50.786 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.786 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:50.787 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:50.787 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.691
Scenario Outline Check 76091be7-358a-4a44-8182-b4139c96c6a4
Check href links in metadata record van 76091be7-358a-4a44-8182-b4139c96c6a4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '76091be7-358a-4a44-8182-b4139c96c6a4' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76091be7-358a-4a44-8182-b4139c96c6a4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:50.642 [print] title:Adressen
* print title 0.000
15:10:50.642 [print] Adressen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:50.643 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:50.644 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"76091be7-358a-4a44-8182-b4139c96c6a4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:50.647 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"
]
* def id = "76091be7-358a-4a44-8182-b4139c96c6a4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.077
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:10:50.726 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"
}
> * print "testing xlinkurl: 0.000
15:10:50.650 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.650 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
> Given url link 0.000
> When method HEAD 0.075
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:10:50.726 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 74 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
15:10:50.726 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.609
Scenario Outline Check 0558a41c-b09a-47fa-b8db-9de6bfe4f494
Check href links in metadata record van 0558a41c-b09a-47fa-b8db-9de6bfe4f494
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.589
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:50.720 [print] title:Gebouwen
* print title 0.000
15:10:50.720 [print] Gebouwen
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:50.722 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:50.722 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"0558a41c-b09a-47fa-b8db-9de6bfe4f494","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:10:50.728 [print] [
  "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2",
  ""
]
* def id = "0558a41c-b09a-47fa-b8db-9de6bfe4f494" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.006
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:50.735 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"
}
> * print "testing xlinkurl: 0.000
15:10:50.733 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.734 [print] testing xlinkurl:http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:50.734 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
15:10:50.734 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:50.734 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:50.735 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.735 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:50.735 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:50.735 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.136
Scenario Outline Check 1c3afc74-cc34-44b7-938a-963e2350795a
Check href links in metadata record van 1c3afc74-cc34-44b7-938a-963e2350795a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1c3afc74-cc34-44b7-938a-963e2350795a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.529
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c3afc74-cc34-44b7-938a-963e2350795a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:50.831 [print] title:Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* print title 0.000
15:10:50.832 [print] Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:50.833 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:50.835 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1c3afc74-cc34-44b7-938a-963e2350795a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:50.839 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"
]
* def id = "1c3afc74-cc34-44b7-938a-963e2350795a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.298
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.138 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:50.843 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:50.843 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"
}
> * print "testing xlinkurl: 0.000
15:10:51.137 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.137 [print] testing xlinkurl:http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.138 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
15:10:51.138 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.341
Scenario Outline Check c935f2ab-9b65-4dc4-94a0-73aeb840a941
Check href links in metadata record van c935f2ab-9b65-4dc4-94a0-73aeb840a941
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.332
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:50.988 [print] title:Overheidsdiensten
* print title 0.000
15:10:50.988 [print] Overheidsdiensten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:50.989 [print] [
  "erik.simonse@kvk.nl",
  "erik.simonse@kvk.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:50.991 [print] organisation: [
  "Kamer van Koophandel",
  "Kamer van Koophandel"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c935f2ab-9b65-4dc4-94a0-73aeb840a941","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "c935f2ab-9b65-4dc4-94a0-73aeb840a941" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
1.601
Scenario Outline Check 4783ea4f-6b8c-4600-8af0-516f3556cfe9
Check href links in metadata record van 4783ea4f-6b8c-4600-8af0-516f3556cfe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
15:10:51.270 [print] title:Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* print title 0.000
15:10:51.271 [print] Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:51.273 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:10:51.275 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4783ea4f-6b8c-4600-8af0-516f3556cfe9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:51.280 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "",
  "",
  "",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "4783ea4f-6b8c-4600-8af0-516f3556cfe9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.525
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=}, {link=}, {link=}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:51.806 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9"
}
> * print "testing xlinkurl: 0.000
15:10:51.283 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.284 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
15:10:51.596 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.596 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:51.797 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.797 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:51.798 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.798 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.798 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.798 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.799 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.799 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.799 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.801 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.801 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.801 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.802 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.802 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.803 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.804 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:51.804 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.805 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.805 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:51.806 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:51.806 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.684
Scenario Outline Check 7c24ea89-074e-4c4f-91e3-d38e813e9cb6
Check href links in metadata record van 7c24ea89-074e-4c4f-91e3-d38e813e9cb6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.654
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:51.384 [print] title:Luchtfoto 2017 25cm CIR open data
* print title 0.000
15:10:51.384 [print] Luchtfoto 2017 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:51.385 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:51.387 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7c24ea89-074e-4c4f-91e3-d38e813e9cb6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:51.392 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018",
  "",
  "",
  ""
]
* def id = "7c24ea89-074e-4c4f-91e3-d38e813e9cb6" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.015
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b018}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.408 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"
}
> * print "testing xlinkurl: 0.000
15:10:51.396 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.396 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.396 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
15:10:51.396 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.397 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.397 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.397 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.398 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.398 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.398 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.398 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.399 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.399 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.399 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.399 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.399 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.400 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.400 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.945
Scenario Outline Check 80630ee7-3a15-4ea0-bdc0-a8aebfa2f204
Check href links in metadata record van 80630ee7-3a15-4ea0-bdc0-a8aebfa2f204
Steps
Given path 'geonetwork/srv/dut/inspire' 0.006
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.662
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:51.408 [print] title:Oppervlaktegeologie, Geologische kaart onder INSPIRE
* print title 0.000
15:10:51.408 [print] Oppervlaktegeologie, Geologische kaart onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:51.409 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:51.410 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"80630ee7-3a15-4ea0-bdc0-a8aebfa2f204","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:51.415 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "80630ee7-3a15-4ea0-bdc0-a8aebfa2f204" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.636
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 210, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:53.052 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"
}
> * print "testing xlinkurl: 0.000
15:10:51.418 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.418 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
15:10:51.699 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:10:51.699 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
15:10:51.700 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.700 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.210
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 210, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:10:51.910 status code was: 404, expected: 200, response time: 210, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:10:51.910 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 210, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:10:51.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.911 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.593
> Then status 200 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:52.508 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
15:10:52.511 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:52.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:52.515 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.536
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:53.052 status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.821
Scenario Outline Check 1249746f-c2a6-4639-98f2-251676b3528e
Check href links in metadata record van 1249746f-c2a6-4639-98f2-251676b3528e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1249746f-c2a6-4639-98f2-251676b3528e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.547
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.002
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1249746f-c2a6-4639-98f2-251676b3528e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:51.547 [print] title:Maritieme grenzen - basislijn Noordzee
* print title 0.000
15:10:51.547 [print] Maritieme grenzen - basislijn Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:51.549 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:51.550 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1249746f-c2a6-4639-98f2-251676b3528e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:51.555 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"
]
* def id = "1249746f-c2a6-4639-98f2-251676b3528e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.631
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
15:10:52.188 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:51.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.559 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.344
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"
}
> * print "testing xlinkurl: 0.000
15:10:51.905 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.906 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
15:10:52.187 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.805
Scenario Outline Check f1d27179-36eb-4376-8048-f51d2eb23a09
Check href links in metadata record van f1d27179-36eb-4376-8048-f51d2eb23a09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:51.677 [print] title:Nederlands deel PSSA Waddenzee
* print title 0.000
15:10:51.677 [print] Nederlands deel PSSA Waddenzee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:51.679 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:51.680 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f1d27179-36eb-4376-8048-f51d2eb23a09","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.011
* print nlinks 0.000
15:10:51.696 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"
]
* def id = "f1d27179-36eb-4376-8048-f51d2eb23a09" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.626
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
15:10:52.325 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:51.704 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.704 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"
}
> * print "testing xlinkurl: 0.000
15:10:52.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.002 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
15:10:52.324 status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.555
Scenario Outline Check 5b274449-b6c2-4672-a32f-e0bd40975a53
Check href links in metadata record van 5b274449-b6c2-4672-a32f-e0bd40975a53
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:51.940 [print] title:Luchtfoto 2018 25cm RGB open data
* print title 0.000
15:10:51.940 [print] Luchtfoto 2018 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:51.940 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:51.942 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5b274449-b6c2-4672-a32f-e0bd40975a53","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:51.949 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020",
  "",
  "",
  ""
]
* def id = "5b274449-b6c2-4672-a32f-e0bd40975a53" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.009
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b020}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.959 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"
}
> * print "testing xlinkurl: 0.000
15:10:51.952 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.953 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.953 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
15:10:51.954 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:51.954 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:51.956 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.956 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.957 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.957 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.957 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.957 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.958 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.958 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.958 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:51.958 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.959 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:51.959 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:51.959 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:51.959 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.342
Scenario Outline Check krw-782cab20-8328-45f1-a9b2-c27d07c14066
Check href links in metadata record van krw-782cab20-8328-45f1-a9b2-c27d07c14066
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.584
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:52.396 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* print title 0.000
15:10:52.396 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:52.397 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:52.398 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krw-782cab20-8328-45f1-a9b2-c27d07c14066","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:52.402 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "krw-782cab20-8328-45f1-a9b2-c27d07c14066" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.875
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 323, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:53.278 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066"
}
> * print "testing xlinkurl: 0.000
15:10:52.405 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.406 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066
> Given url link 0.000
> When method HEAD 0.337
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:52.744 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.745 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.202
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:52.948 status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:52.948 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:52.950 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.950 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.323
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 323, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:53.274 status code was: 500, expected: 200, response time: 323, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:10:53.274 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 323, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:53.275 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.000
15:10:53.278 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:10:53.278 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:10:53.278 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.577
Scenario Outline Check e536d943-ecff-4d7a-9500-cc31a263a6af
Check href links in metadata record van e536d943-ecff-4d7a-9500-cc31a263a6af
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:52.527 [print] title:Publiekrechtelijke beperkingen
* print title 0.000
15:10:52.527 [print] Publiekrechtelijke beperkingen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:52.528 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:52.529 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e536d943-ecff-4d7a-9500-cc31a263a6af","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:52.532 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"
]
* def id = "e536d943-ecff-4d7a-9500-cc31a263a6af" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.003
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:52.536 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"
}
> * print "testing xlinkurl: 0.000
15:10:52.535 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.535 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:52.536 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
15:10:52.536 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.201
Scenario Outline Check 4617f0e0-6af4-4ac0-9044-31df9d03071c
Check href links in metadata record van 4617f0e0-6af4-4ac0-9044-31df9d03071c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.692
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:52.885 [print] title:Gebieden in de territoriale zee
* print title 0.000
15:10:52.885 [print] Gebieden in de territoriale zee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:52.887 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:52.887 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4617f0e0-6af4-4ac0-9044-31df9d03071c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:52.893 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"
]
* def id = "4617f0e0-6af4-4ac0-9044-31df9d03071c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.749
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 456, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
15:10:53.644 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 456, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:52.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:52.897 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"
}
> * print "testing xlinkurl: 0.000
15:10:53.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.187 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c
> Given url link 0.000
> When method HEAD 0.456
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 456, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
15:10:53.644 status code was: 500, expected: 200, response time: 456, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.455
Scenario Outline Check 0f128799-cf18-4b37-a721-e62b068191f5
Check href links in metadata record van 0f128799-cf18-4b37-a721-e62b068191f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0f128799-cf18-4b37-a721-e62b068191f5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.667
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0f128799-cf18-4b37-a721-e62b068191f5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:52.995 [print] title:Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
15:10:52.995 [print] Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:52.996 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:52.997 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"0f128799-cf18-4b37-a721-e62b068191f5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:53.001 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "0f128799-cf18-4b37-a721-e62b068191f5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.892
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:53.895 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:53.005 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.005 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5"
}
> * print "testing xlinkurl: 0.000
15:10:53.295 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.295 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5
> Given url link 0.000
> When method HEAD 0.543
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:53.840 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.840 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.047
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:53.888 status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:53.890 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 46, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:53.892 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.892 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:53.893 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:53.894 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.406
Scenario Outline Check ca94a0cb-7561-4a10-a7d6-b840e56c33ff
Check href links in metadata record van ca94a0cb-7561-4a10-a7d6-b840e56c33ff
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.671
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:53.211 [print] title:Provinciale monumenten
* print title 0.000
15:10:53.211 [print] Provinciale monumenten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:53.211 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:53.212 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ca94a0cb-7561-4a10-a7d6-b840e56c33ff","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:53.216 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "ca94a0cb-7561-4a10-a7d6-b840e56c33ff" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.865
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:54.082 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:53.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.219 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff"
}
> * print "testing xlinkurl: 0.000
15:10:53.514 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.514 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff
> Given url link 0.000
> When method HEAD 0.523
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:54.039 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.039 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:54.079 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:54.079 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:54.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.081 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:54.082 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:54.082 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.412
Scenario Outline Check 380aa01e-dce7-11e3-9f07-901b0e19e163
Check href links in metadata record van 380aa01e-dce7-11e3-9f07-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.574
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:10:53.632 [print] title:Netwerk van KNMI waarneemstations
* print title 0.000
15:10:53.632 [print] Netwerk van KNMI waarneemstations
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:53.633 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:53.634 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"380aa01e-dce7-11e3-9f07-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:53.638 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "380aa01e-dce7-11e3-9f07-901b0e19e163" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.414
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:10:54.053 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"
}
> * print "testing xlinkurl: 0.000
15:10:53.641 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.641 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
15:10:53.953 status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:53.953 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
15:10:53.954 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.954 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.098
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:10:54.053 status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.244
Scenario Outline Check f002bfc5-7d87-46b6-819e-8415422b65c9
Check href links in metadata record van f002bfc5-7d87-46b6-819e-8415422b65c9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.567
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:53.849 [print] title:Aardkundige waarden
* print title 0.000
15:10:53.849 [print] Aardkundige waarden
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:53.850 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.003
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:53.854 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f002bfc5-7d87-46b6-819e-8415422b65c9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:53.859 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f002bfc5-7d87-46b6-819e-8415422b65c9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.836
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:54.697 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:10:53.866 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:53.866 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9"
}
> * print "testing xlinkurl: 0.000
15:10:54.162 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.162 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9
> Given url link 0.000
> When method HEAD 0.475
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
15:10:54.641 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.641 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.047
> Then status 200 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:54.690 status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:54.692 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:10:54.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.694 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:54.695 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:54.695 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.365
Scenario Outline Check e3b0da1e-0664-4025-b3f5-a54d74a26450
Check href links in metadata record van e3b0da1e-0664-4025-b3f5-a54d74a26450
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.562
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:54.210 [print] title:zoutvelden en zoutproductieputten onder INSPIRE
* print title 0.000
15:10:54.210 [print] zoutvelden en zoutproductieputten onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:54.211 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:54.212 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e3b0da1e-0664-4025-b3f5-a54d74a26450","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:54.216 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "e3b0da1e-0664-4025-b3f5-a54d74a26450" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.397
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/34}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 283, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 401, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:55.615 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"
}
> * print "testing xlinkurl: 0.000
15:10:54.220 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.220 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b
> Given url link 0.000
> When method HEAD 0.283
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 283, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
15:10:54.504 status code was: 404, expected: 200, response time: 283, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"
}
> * print "testing xlinkurl: 0.000
15:10:54.504 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 283, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
15:10:54.505 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.505 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/34
> Given url link 0.000
> When method HEAD 0.198
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
15:10:54.704 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:10:54.704 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
15:10:54.705 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.705 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.595
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 401, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:55.300 status code was: 404, expected: 200, response time: 401, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:55.301 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 401, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:55.302 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.302 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:55.615 status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.588
Scenario Outline Check 4b282988-cb91-4bbc-b147-f653014917cb
Check href links in metadata record van 4b282988-cb91-4bbc-b147-f653014917cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4b282988-cb91-4bbc-b147-f653014917cb' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b282988-cb91-4bbc-b147-f653014917cb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.004
15:10:54.642 [print] title:Hydrografie
* print title 0.000
15:10:54.643 [print] Hydrografie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:54.644 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:54.646 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"4b282988-cb91-4bbc-b147-f653014917cb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.006
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:54.655 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"
]
* def id = "4b282988-cb91-4bbc-b147-f653014917cb" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.012
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:54.668 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"
}
> * print "testing xlinkurl: 0.000
15:10:54.658 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:54.659 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:54.660 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
15:10:54.661 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.276
Scenario Outline Check 50a2c5e6-c8e7-425d-854e-26f578196bc9
Check href links in metadata record van 50a2c5e6-c8e7-425d-854e-26f578196bc9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:55.212 [print] title:Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* print title 0.000
15:10:55.212 [print] Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:55.213 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:55.214 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"50a2c5e6-c8e7-425d-854e-26f578196bc9","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:55.219 [print] [
  "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"
]
* def id = "50a2c5e6-c8e7-425d-854e-26f578196bc9" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.363
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:55.584 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"
}
> * print "testing xlinkurl: 0.000
15:10:55.222 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:10:55.224 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:55.583 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
15:10:55.584 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.583
Scenario Outline Check 64ff8561-5c56-4cc1-ae0e-94366fb70b7e
Check href links in metadata record van 64ff8561-5c56-4cc1-ae0e-94366fb70b7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.545
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:55.246 [print] title:Luchtfoto 2019 25cm RGB open data
* print title 0.000
15:10:55.247 [print] Luchtfoto 2019 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:55.248 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:55.249 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Geocart",
  "Geocart",
  "Geocart",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"64ff8561-5c56-4cc1-ae0e-94366fb70b7e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:55.255 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023",
  "",
  "",
  ""
]
* def id = "64ff8561-5c56-4cc1-ae0e-94366fb70b7e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.016
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b023}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.272 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"
}
> * print "testing xlinkurl: 0.000
15:10:55.259 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.259 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.261 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
15:10:55.261 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:55.264 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.265 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.266 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.266 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.267 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:55.267 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.268 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.268 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.269 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.269 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:55.270 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.270 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.271 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.272 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.272 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.610
Scenario Outline Check df15af6e-0d21-4437-a69f-802be3479bba
Check href links in metadata record van df15af6e-0d21-4437-a69f-802be3479bba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df15af6e-0d21-4437-a69f-802be3479bba' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.547
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df15af6e-0d21-4437-a69f-802be3479bba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:55.476 [print] title:Luchtfoto 2016 25cm RGB open data
* print title 0.000
15:10:55.477 [print] Luchtfoto 2016 25cm RGB open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:55.478 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.006
15:10:55.486 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"df15af6e-0d21-4437-a69f-802be3479bba","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:55.494 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014",
  "",
  "",
  ""
]
* def id = "df15af6e-0d21-4437-a69f-802be3479bba" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.023
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b014}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.520 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"
}
> * print "testing xlinkurl: 0.002
15:10:55.501 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.501 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.503 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
15:10:55.504 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:55.505 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.506 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.507 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.508 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.508 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:10:55.509 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.511 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.512 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.513 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.514 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:10:55.515 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.516 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.516 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:55.517 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:10:55.518 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.534
Scenario Outline Check 3eebf700-5abf-42e4-826c-03cfb497e366
Check href links in metadata record van 3eebf700-5abf-42e4-826c-03cfb497e366
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3eebf700-5abf-42e4-826c-03cfb497e366' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3eebf700-5abf-42e4-826c-03cfb497e366' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:55.793 [print] title:Vervoersnetwerken
* print title 0.000
15:10:55.793 [print] Vervoersnetwerken
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:55.795 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:55.796 [print] organisation: [
  "Kadaster",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3eebf700-5abf-42e4-826c-03cfb497e366","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:55.800 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"
]
* def id = "3eebf700-5abf-42e4-826c-03cfb497e366" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.004
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.805 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"
}
> * print "testing xlinkurl: 0.000
15:10:55.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:55.803 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:55.804 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
15:10:55.805 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.176
Scenario Outline Check 11a292bd-9022-4a9f-b1bf-02f5c89ad74a
Check href links in metadata record van 11a292bd-9022-4a9f-b1bf-02f5c89ad74a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.583
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.032 [print] title:Totale potentie aardwarmte uit aquifers, INSPIRE
* print title 0.000
15:10:56.032 [print] Totale potentie aardwarmte uit aquifers, INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:56.033 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.035 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"11a292bd-9022-4a9f-b1bf-02f5c89ad74a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:56.041 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"
]
* def id = "11a292bd-9022-4a9f-b1bf-02f5c89ad74a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.291
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
15:10:56.333 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"
}
> * print "testing xlinkurl: 0.000
15:10:56.044 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.046 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
15:10:56.333 status code was: 404, expected: 200, response time: 286, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.231
Scenario Outline Check 6c06740d-058f-4a12-bb3f-bf68efd03d09
Check href links in metadata record van 6c06740d-058f-4a12-bb3f-bf68efd03d09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.614
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.138 [print] title:Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* print title 0.000
15:10:56.138 [print] Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:56.139 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.139 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6c06740d-058f-4a12-bb3f-bf68efd03d09","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.143 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"
]
* def id = "6c06740d-058f-4a12-bb3f-bf68efd03d09" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.305
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:56.450 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:56.147 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.147 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"
}
> * print "testing xlinkurl: 0.000
15:10:56.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.446 [print] testing xlinkurl:http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:56.447 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
15:10:56.449 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.225
Scenario Outline Check 7dd1fd45-ace5-41e0-93a6-64e3be231717
Check href links in metadata record van 7dd1fd45-ace5-41e0-93a6-64e3be231717
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.611
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.198 [print] title:Administratieve Eenheden (INSPIRE geharmoniseerd)
* print title 0.000
15:10:56.198 [print] Administratieve Eenheden (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:56.199 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.200 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7dd1fd45-ace5-41e0-93a6-64e3be231717","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.204 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"
]
* def id = "7dd1fd45-ace5-41e0-93a6-64e3be231717" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.305
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:56.510 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:56.209 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.210 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"
}
> * print "testing xlinkurl: 0.000
15:10:56.504 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.504 [print] testing xlinkurl:http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:10:56.509 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
15:10:56.509 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.356
Scenario Outline Check 8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6
Check href links in metadata record van 8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.625
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.245 [print] title:Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
15:10:56.245 [print] Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:56.246 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.247 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.250 [print] [
  "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"
]
* def id = "8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:56.613 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"
}
> * print "testing xlinkurl: 0.000
15:10:56.254 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.254 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:56.613 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
15:10:56.613 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.269
Scenario Outline Check ad6caa40-89ab-47e3-85ab-3f8e32024a71
Check href links in metadata record van ad6caa40-89ab-47e3-85ab-3f8e32024a71
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.544
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.352 [print] title:Emissies naar lucht en water in 2011 vanuit de industrie
* print title 0.000
15:10:56.353 [print] Emissies naar lucht en water in 2011 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:56.354 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.355 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ad6caa40-89ab-47e3-85ab-3f8e32024a71","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.359 [print] [
  "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"
]
* def id = "ad6caa40-89ab-47e3-85ab-3f8e32024a71" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.359
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:56.719 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"
}
> * print "testing xlinkurl: 0.000
15:10:56.362 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.362 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:56.718 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
15:10:56.718 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.395
Scenario Outline Check 110f9ec6-4464-462e-9765-83d90cefbead
Check href links in metadata record van 110f9ec6-4464-462e-9765-83d90cefbead
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbead' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.601
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbead' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.639 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* print title 0.000
15:10:56.639 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* def email = get response //electronicMailAddress/CharacterString 0.063
* print email 0.000
15:10:56.702 [print] [
  "servicedesk@ihw.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk@ihw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.703 [print] organisation: [
  "Informatiehuis Water",
  "Informatiehuis Water",
  "",
  "Rijkswaterstaat",
  "Informatiehuis Water"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"110f9ec6-4464-462e-9765-83d90cefbead","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.709 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbead" 0.008
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.858
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:57.575 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead"
}
> * print "testing xlinkurl: 0.000
15:10:56.724 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.724 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead
> Given url link 0.000
> When method HEAD 0.334
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:57.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.061 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.202
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.264 status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:57.264 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.265 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.265 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:57.575 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.481
Scenario Outline Check a04afee4-47d5-45b7-b7a0-a6f86106af11
Check href links in metadata record van a04afee4-47d5-45b7-b7a0-a6f86106af11
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.641
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:56.979 [print] title:Mosselzaadinvanginstallaties
* print title 0.000
15:10:56.979 [print] Mosselzaadinvanginstallaties
* def email = get response //electronicMailAddress/CharacterString 0.002
* print email 0.000
15:10:56.982 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "VR@minez.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheer@pdok.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:56.983 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a04afee4-47d5-45b7-b7a0-a6f86106af11","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:56.987 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "a04afee4-47d5-45b7-b7a0-a6f86106af11" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.916
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 462, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:10:59.906 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 462, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:56.993 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:56.994 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.542
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11"
}
> * print "testing xlinkurl: 0.000
15:10:57.538 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.538 [print] testing xlinkurl:http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11
> Given url link 0.000
> When method HEAD 0.219
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:57.759 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.760 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.530
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.001
15:10:58.293 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.294 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.585
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:10:58.881 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.882 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.023
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 462, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:10:59.906 status code was: 404, expected: 200, response time: 462, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.945
Scenario Outline Check e8b84fae-00b3-49c1-80c1-df8f69f64e8c
Check href links in metadata record van e8b84fae-00b3-49c1-80c1-df8f69f64e8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.704
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:57.159 [print] title:EEZ volgens UNCLOS - Noordzee
* print title 0.000
15:10:57.160 [print] EEZ volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:57.161 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:57.162 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e8b84fae-00b3-49c1-80c1-df8f69f64e8c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:57.166 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"
]
* def id = "e8b84fae-00b3-49c1-80c1-df8f69f64e8c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.616
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
15:10:57.784 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:57.170 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.170 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"
}
> * print "testing xlinkurl: 0.000
15:10:57.465 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.465 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
15:10:57.783 status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.896
Scenario Outline Check bb11be63-bd38-4632-bf54-df44c423a529
Check href links in metadata record van bb11be63-bd38-4632-bf54-df44c423a529
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bb11be63-bd38-4632-bf54-df44c423a529' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.662
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb11be63-bd38-4632-bf54-df44c423a529' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:57.177 [print] title:Territoriale Zee volgens UNCLOS - Noordzee
* print title 0.000
15:10:57.177 [print] Territoriale Zee volgens UNCLOS - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:57.178 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:57.179 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"bb11be63-bd38-4632-bf54-df44c423a529","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:57.184 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"
]
* def id = "bb11be63-bd38-4632-bf54-df44c423a529" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.612
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
15:10:57.798 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:10:57.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.189 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"
}
> * print "testing xlinkurl: 0.000
15:10:57.486 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.486 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
15:10:57.798 status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.275
Scenario Outline Check krm-a905-9d8e-4758-83fa-28b057f185e3
Check href links in metadata record van krm-a905-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.608
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:57.226 [print] title:Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* print title 0.001
15:10:57.228 [print] Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:57.229 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:57.231 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.001
* def db = new mystorage 0.000
* eval db.mywriteln('"krm-a905-9d8e-4758-83fa-28b057f185e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:57.236 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e3" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.827
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:58.066 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
15:10:57.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.242 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:57.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.556 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.756 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:57.756 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.757 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.757 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:58.066 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.234
Scenario Outline Check krm-a905-9d8e-4758-83fa-28b057f185e4
Check href links in metadata record van krm-a905-9d8e-4758-83fa-28b057f185e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.562
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:57.286 [print] title:Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* print title 0.000
15:10:57.286 [print] Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:57.287 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:57.289 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"krm-a905-9d8e-4758-83fa-28b057f185e4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:57.296 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e4" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.829
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:58.127 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4"
}
> * print "testing xlinkurl: 0.000
15:10:57.301 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.301 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:57.615 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.616 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.816 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:10:57.816 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:57.817 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:57.817 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:10:58.127 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.345
Scenario Outline Check 24de356e-ec4d-4a18-9903-6401d222b77c
Check href links in metadata record van 24de356e-ec4d-4a18-9903-6401d222b77c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '24de356e-ec4d-4a18-9903-6401d222b77c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.548
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '24de356e-ec4d-4a18-9903-6401d222b77c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:58.128 [print] title:Vergunningen Mijnbouwwet onder INSPIRE
* print title 0.000
15:10:58.128 [print] Vergunningen Mijnbouwwet onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:58.129 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:58.130 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"24de356e-ec4d-4a18-9903-6401d222b77c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:10:58.136 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "24de356e-ec4d-4a18-9903-6401d222b77c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.394
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:59.532 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"
}
> * print "testing xlinkurl: 0.000
15:10:58.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.140 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024
> Given url link 0.000
> When method HEAD 0.278
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
15:10:58.419 status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:10:58.419 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
15:10:58.421 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.421 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:58.622 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:10:58.622 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:10:58.623 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.623 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.597
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:59.220 status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:10:59.221 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 403, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:10:59.222 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.222 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:10:59.532 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.285
Scenario Outline Check e1e99000-ec47-4e9f-84a5-adad24fef0dc
Check href links in metadata record van e1e99000-ec47-4e9f-84a5-adad24fef0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.550
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:10:58.340 [print] title:Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
15:10:58.340 [print] Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:10:58.342 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:58.344 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"e1e99000-ec47-4e9f-84a5-adad24fef0dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:10:58.349 [print] [
  "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"
]
* def id = "e1e99000-ec47-4e9f-84a5-adad24fef0dc" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:58.710 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"
}
> * print "testing xlinkurl: 0.000
15:10:58.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.353 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:58.710 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
15:10:58.710 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.559
Scenario Outline Check 19165027-a13a-4c19-9013-ec1fd191019d
Check href links in metadata record van 19165027-a13a-4c19-9013-ec1fd191019d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '19165027-a13a-4c19-9013-ec1fd191019d' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.610
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '19165027-a13a-4c19-9013-ec1fd191019d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:58.412 [print] title:Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* print title 0.000
15:10:58.412 [print] Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:58.413 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "GeoDesk.CGI@wur.nl",
  "beheer@pdok.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:58.415 [print] organisation: [
  "",
  ""
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"19165027-a13a-4c19-9013-ec1fd191019d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.004
15:10:58.423 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "19165027-a13a-4c19-9013-ec1fd191019d" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.969
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 439, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:11:01.394 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 439, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:58.427 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.428 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.560
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d"
}
> * print "testing xlinkurl: 0.000
15:10:58.989 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.989 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d
> Given url link 0.000
> When method HEAD 0.246
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:59.237 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.237 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.596
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:10:59.835 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.836 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.559
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:11:00.397 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.397 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 0.996
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 439, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:11:01.394 status code was: 404, expected: 200, response time: 439, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.277
Scenario Outline Check 32a21114-8694-40ce-ab76-9dcd885c7861
Check href links in metadata record van 32a21114-8694-40ce-ab76-9dcd885c7861
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '32a21114-8694-40ce-ab76-9dcd885c7861' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32a21114-8694-40ce-ab76-9dcd885c7861' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:58.596 [print] title:Kwaliteit van drinkwater in Nederland (2012)
* print title 0.000
15:10:58.597 [print] Kwaliteit van drinkwater in Nederland (2012)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:58.597 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:58.598 [print] organisation: [
  "RIVM",
  ""
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"32a21114-8694-40ce-ab76-9dcd885c7861","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:10:58.604 [print] [
  "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"
]
* def id = "32a21114-8694-40ce-ab76-9dcd885c7861" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.370
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:58.975 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"
}
> * print "testing xlinkurl: 0.000
15:10:58.607 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.607 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
> Given url link 0.000
> When method HEAD 0.367
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:10:58.975 javax.net.ssl.SSLException: Connection reset, http call failed after 364 milliseconds for URL: https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
15:10:58.975 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.534
Scenario Outline Check 73ec579e-c906-433a-b0b6-d3aa33421558
Check href links in metadata record van 73ec579e-c906-433a-b0b6-d3aa33421558
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '73ec579e-c906-433a-b0b6-d3aa33421558' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.337
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73ec579e-c906-433a-b0b6-d3aa33421558' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:58.469 [print] title:Luchtvaartinformatie
* print title 0.000
15:10:58.470 [print] Luchtvaartinformatie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:58.471 [print] [
  "AIS@LVNL.NL",
  "AIS@LVNL.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:58.472 [print] organisation: [
  "Luchtverkeersleiding Nederland (LVNL)",
  "Luchtverkeersleiding Nederland (LVNL)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"73ec579e-c906-433a-b0b6-d3aa33421558","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.001
15:10:58.480 [print] [
  "u",
  "r",
  "n",
  ":",
  "o",
  "g",
  "c",
  ":",
  "d",
  "e",
  "f",
  ":",
  "c",
  "r",
  "s",
  ":",
  "E",
  "P",
  "S",
  "G",
  ":",
  ":",
  "5",
  "6",
  "2",
  "1"
]
* def id = "73ec579e-c906-433a-b0b6-d3aa33421558" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.109
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=u}, {link=r}, {link=n}, {link=:}, {link=o}, {link=g}, {link=c}, {link=:}, {link=d}, {link=e}, {link=f}, {link=:}, {link=c}, {link=r}, {link=s}, {link=:}, {link=E}, {link=P}, {link=S}, {link=G}, {link=:}, {link=:}, {link=5}, {link=6}, {link=2}, {link=1}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.591 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
15:10:58.485 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.486 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.487 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:10:58.488 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:58.489 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.490 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.491 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.492 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:58.492 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:10:58.494 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.495 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.496 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.497 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:10:58.497 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:58.499 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.500 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.501 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.501 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:10:58.502 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.503 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.504 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.505 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:10:58.506 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:10:58.507 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.508 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.508 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.509 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:10:58.510 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:10:58.511 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.512 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.513 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.514 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:10:58.515 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:58.516 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.517 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.517 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.518 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:10:58.520 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.521 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.521 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.522 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:10:58.523 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:10:58.524 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.525 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.526 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.527 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:10:58.528 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:10:58.529 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.531 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.531 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.532 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:10:58.533 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:58.534 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.536 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.536 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.537 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:10:58.538 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.539 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.540 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.541 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:10:58.542 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:10:58.543 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.544 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.545 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.546 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:10:58.547 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:10:58.548 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.549 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.549 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.550 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:10:58.551 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:58.552 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.553 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.554 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.554 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "E"
}
> * print "testing xlinkurl: 0.000
15:10:58.555 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.557 [print] testing xlinkurl:E
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.558 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: E
15:10:58.558 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.000
15:10:58.559 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.560 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.561 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.562 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
15:10:58.562 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
15:10:58.563 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.564 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.565 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.566 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
15:10:58.566 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "G"
}
> * print "testing xlinkurl: 0.000
15:10:58.568 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.568 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.569 [print] testing xlinkurl:G
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.570 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: G
15:10:58.570 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.001
15:10:58.571 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.572 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.573 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.573 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:10:58.574 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.575 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.575 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.576 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "5"
}
> * print "testing xlinkurl: 0.001
15:10:58.576 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:10:58.578 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.578 [print] testing xlinkurl:5
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.579 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 5
15:10:58.580 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "6"
}
> * print "testing xlinkurl: 0.001
15:10:58.580 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.582 [print] testing xlinkurl:6
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.583 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 6
15:10:58.583 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "2"
}
> * print "testing xlinkurl: 0.001
15:10:58.584 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.586 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.586 [print] testing xlinkurl:2
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.586 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 2
15:10:58.587 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.001
15:10:58.587 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.589 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:58.590 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:10:58.590 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
15:10:58.591 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.189
Scenario Outline Check c3c004ad-5387-4b00-a225-9afbcaa5d31b
Check href links in metadata record van c3c004ad-5387-4b00-a225-9afbcaa5d31b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:59.122 [print] title:Geluidkaart hoofdspoornet 2016 (Lden)
* print title 0.000
15:10:59.122 [print] Geluidkaart hoofdspoornet 2016 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:59.124 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:59.125 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"c3c004ad-5387-4b00-a225-9afbcaa5d31b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:10:59.129 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"
]
* def id = "c3c004ad-5387-4b00-a225-9afbcaa5d31b" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.327
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
15:10:59.457 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"
}
> * print "testing xlinkurl: 0.000
15:10:59.132 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.132 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b
> Given url link 0.000
> When method HEAD 0.324
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
15:10:59.457 status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.300
Scenario Outline Check 64c987ec-dce6-11e3-8563-901b0e19e163
Check href links in metadata record van 64c987ec-dce6-11e3-8563-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.544
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
15:10:59.525 [print] title:Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* print title 0.000
15:10:59.526 [print] Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:10:59.528 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.007
15:10:59.537 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"64c987ec-dce6-11e3-8563-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
15:10:59.543 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "64c987ec-dce6-11e3-8563-901b0e19e163" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.368
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:10:59.912 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"
}
> * print "testing xlinkurl: 0.000
15:10:59.546 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.547 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
15:10:59.865 status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:10:59.867 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
15:10:59.868 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.869 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.043
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:10:59.912 status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.503
Scenario Outline Check f5f68d51-2ca4-4897-8227-d3938b2b0a7e
Check href links in metadata record van f5f68d51-2ca4-4897-8227-d3938b2b0a7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:10:59.971 [print] title:Afvalinrichtingen inclusief nucleaire inrichtingen
* print title 0.000
15:10:59.971 [print] Afvalinrichtingen inclusief nucleaire inrichtingen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:10:59.972 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:10:59.973 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f5f68d51-2ca4-4897-8227-d3938b2b0a7e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.000
15:10:59.982 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "f5f68d51-2ca4-4897-8227-d3938b2b0a7e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.490
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.473 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e"
}
> * print "testing xlinkurl: 0.002
15:10:59.987 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:10:59.987 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e
> Given url link 0.000
> When method HEAD 0.439
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:00.429 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.429 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.035
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:00.467 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:00.468 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:00.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.470 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.471 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:00.472 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.302
Scenario Outline Check b59f06c0-dce5-11e3-9c10-901b0e19e163
Check href links in metadata record van b59f06c0-dce5-11e3-9c10-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.560
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:00.020 [print] title:Aardbevingen Nederland (KNMI)
* print title 0.000
15:11:00.020 [print] Aardbevingen Nederland (KNMI)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:00.021 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:00.022 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b59f06c0-dce5-11e3-9c10-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:00.026 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "b59f06c0-dce5-11e3-9c10-901b0e19e163" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.372
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:11:00.400 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"
}
> * print "testing xlinkurl: 0.000
15:11:00.039 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.039 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
15:11:00.353 status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.004
15:11:00.353 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
15:11:00.358 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.359 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.040
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:11:00.400 status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.381
Scenario Outline Check daa63e4c-dce6-11e3-991e-901b0e19e163
Check href links in metadata record van daa63e4c-dce6-11e3-991e-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.609
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.024
15:11:00.169 [print] title:Gecontroleerde klimatologische daggegevens KNMI Nederland
* print title 0.000
15:11:00.169 [print] Gecontroleerde klimatologische daggegevens KNMI Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:00.170 [print] [
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl",
  "datacentrum@knmi.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:00.172 [print] organisation: [
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)",
  "Koninklijk Nederlands Meteorologisch Instituut (KNMI)"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"daa63e4c-dce6-11e3-991e-901b0e19e163","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:00.176 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl"
]
* def id = "daa63e4c-dce6-11e3-991e-901b0e19e163" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.369
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:11:00.547 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"
}
> * print "testing xlinkurl: 0.000
15:11:00.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.180 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
15:11:00.499 status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:00.499 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 318, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
15:11:00.499 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.500 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.047
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
15:11:00.547 status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.319
Scenario Outline Check 31de946d-85d4-4c93-bb97-e25f4ef1401a
Check href links in metadata record van 31de946d-85d4-4c93-bb97-e25f4ef1401a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.611
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:00.521 [print] title:Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* print title 0.000
15:11:00.521 [print] Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:00.522 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:00.523 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"31de946d-85d4-4c93-bb97-e25f4ef1401a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
15:11:00.529 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"
]
* def id = "31de946d-85d4-4c93-bb97-e25f4ef1401a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.349
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:11:00.880 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.002
15:11:00.534 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.535 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.334
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"
}
> * print "testing xlinkurl: 0.000
15:11:00.871 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.872 [print] testing xlinkurl:http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
15:11:00.879 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 5 milliseconds for URL: http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
15:11:00.879 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.966
Scenario Outline Check 6f84efeb-fc1d-4565-a721-80735ea57dbd
Check href links in metadata record van 6f84efeb-fc1d-4565-a721-80735ea57dbd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:00.491 [print] title:Rijksmonumenten (verouderd)
* print title 0.000
15:11:00.491 [print] Rijksmonumenten (verouderd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:00.492 [print] [
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:00.493 [print] organisation: [
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6f84efeb-fc1d-4565-a721-80735ea57dbd","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:00.497 [print] [
  "http://services.rce.geovoorziening.nl/www/download/nl.xml",
  "",
  ""
]
* def id = "6f84efeb-fc1d-4565-a721-80735ea57dbd" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.194
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://services.rce.geovoorziening.nl/www/download/nl.xml}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.693 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://services.rce.geovoorziening.nl/www/download/nl.xml"
}
> * print "testing xlinkurl: 0.000
15:11:00.504 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.504 [print] testing xlinkurl:http://services.rce.geovoorziening.nl/www/download/nl.xml
> Given url link 0.000
> When method HEAD 0.180
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:00.687 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.687 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.688 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:00.689 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:00.690 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.691 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:00.691 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:00.692 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:00.692 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.578
Scenario Outline Check 7939fd42-cf88-42c5-ab3b-232cf232a3ac
Check href links in metadata record van 7939fd42-cf88-42c5-ab3b-232cf232a3ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.529
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.007 [print] title:Actueel Hoogtebestand Nederland 2 (AHN2)
* print title 0.000
15:11:01.008 [print] Actueel Hoogtebestand Nederland 2 (AHN2)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:01.009 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.003
15:11:01.013 [print] organisation: [
  "Rijkswaterstaat",
  "stuurgroep AHN",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7939fd42-cf88-42c5-ab3b-232cf232a3ac","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.016 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "7939fd42-cf88-42c5-ab3b-232cf232a3ac" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.518
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:01.537 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac"
}
> * print "testing xlinkurl: 0.000
15:11:01.021 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.021 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:11:01.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.334 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:11:01.535 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:01.535 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:11:01.536 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.536 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:01.537 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:01.537 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.372
Scenario Outline Check fe45c540-e37d-11e4-b571-0800200c9a66
Check href links in metadata record van fe45c540-e37d-11e4-b571-0800200c9a66
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.363
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:00.915 [print] title:Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* print title 0.000
15:11:00.915 [print] Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:00.916 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:00.917 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"fe45c540-e37d-11e4-b571-0800200c9a66","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:48 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "fe45c540-e37d-11e4-b571-0800200c9a66" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
2.034
Scenario Outline Check cf69ec50-9849-4afd-853c-ee56211d336d
Check href links in metadata record van cf69ec50-9849-4afd-853c-ee56211d336d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.588
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.284 [print] title:Waterstanden en afvoeren actueel - Rijkswaterstaat
* print title 0.000
15:11:01.284 [print] Waterstanden en afvoeren actueel - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:01.285 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:01.286 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"cf69ec50-9849-4afd-853c-ee56211d336d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.291 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "cf69ec50-9849-4afd-853c-ee56211d336d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.720
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:02.012 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d"
}
> * print "testing xlinkurl: 0.000
15:11:01.295 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.296 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
15:11:01.609 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.609 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:11:01.809 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
15:11:01.809 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:11:01.810 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.810 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:11:02.010 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:02.010 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
15:11:02.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.012 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:02.012 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:02.012 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.659
Scenario Outline Check effe1ab0-073d-437c-af13-df5c5e07d6cd
Check href links in metadata record van effe1ab0-073d-437c-af13-df5c5e07d6cd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.398 [print] title:CBS gebiedsindelingen
* print title 0.000
15:11:01.399 [print] CBS gebiedsindelingen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:01.399 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:01.400 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"effe1ab0-073d-437c-af13-df5c5e07d6cd","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.002
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.406 [print] [
  "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml",
  "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3",
  ""
]
* def id = "effe1ab0-073d-437c-af13-df5c5e07d6cd" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.567
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml}, {link=https://www.iana.org/assignments/media-types/application/geopackage+sqlite3}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.975 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml"
}
> * print "testing xlinkurl: 0.000
15:11:01.409 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.409 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml
> Given url link 0.000
> When method HEAD 0.393
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3"
}
> * print "testing xlinkurl: 0.000
15:11:01.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.804 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/geopackage+sqlite3
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:01.974 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.974 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.974 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:01.975 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.900
Scenario Outline Check b61a773c-ecad-4e60-93e9-0a4caac0b52f
Check href links in metadata record van b61a773c-ecad-4e60-93e9-0a4caac0b52f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.625
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.549 [print] title:Olie- en gasvelden onder INSPIRE
* print title 0.000
15:11:01.549 [print] Olie- en gasvelden onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:01.550 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:01.551 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b61a773c-ecad-4e60-93e9-0a4caac0b52f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.555 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "b61a773c-ecad-4e60-93e9-0a4caac0b52f" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.634
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/33}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 549, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:03.190 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 549, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"
}
> * print "testing xlinkurl: 0.000
15:11:01.558 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.558 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
15:11:01.840 status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"
}
> * print "testing xlinkurl: 0.000
15:11:01.840 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
15:11:01.841 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.842 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/33
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
15:11:02.045 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:11:02.045 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
15:11:02.046 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.046 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.592
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:11:02.639 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:11:02.639 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:11:02.640 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.640 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.549
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 549, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:03.190 status code was: 500, expected: 200, response time: 549, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.698
Scenario Outline Check fe2f9091-1962-4073-9e3b-3e4aeed488a5
Check href links in metadata record van fe2f9091-1962-4073-9e3b-3e4aeed488a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.534
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.792 [print] title:Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* print title 0.000
15:11:01.792 [print] Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:01.794 [print] [
  "ontheffingen@rdw.nl",
  "ontheffingen@rdw.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:01.795 [print] organisation: [
  "RDW",
  "RDW",
  "RDW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"fe2f9091-1962-4073-9e3b-3e4aeed488a5","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.800 [print] [
  "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf",
  ""
]
* def id = "fe2f9091-1962-4073-9e3b-3e4aeed488a5" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.577
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.379 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf"
}
> * print "testing xlinkurl: 0.000
15:11:01.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.804 [print] testing xlinkurl:http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf
> Given url link 0.000
> When method HEAD 0.571
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:02.377 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.377 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.378 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:02.378 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.553
Scenario Outline Check 9ed6b8ed-254a-4745-a09a-3b57137d1b69
Check href links in metadata record van 9ed6b8ed-254a-4745-a09a-3b57137d1b69
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:01.930 [print] title:Luchtfoto 2019 25cm CIR open data
* print title 0.000
15:11:01.930 [print] Luchtfoto 2019 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:01.931 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:01.932 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Geocart",
  "Geocart",
  "Geocart",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"9ed6b8ed-254a-4745-a09a-3b57137d1b69","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:01.935 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024",
  "",
  "",
  ""
]
* def id = "9ed6b8ed-254a-4745-a09a-3b57137d1b69" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.007
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b024}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.943 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"
}
> * print "testing xlinkurl: 0.000
15:11:01.938 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.939 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:01.939 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
15:11:01.939 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:01.939 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:01.940 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.940 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.940 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:01.941 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:01.941 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.941 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.941 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.942 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:01.942 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:01.942 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:01.943 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:01.943 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:01.943 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.132
Scenario Outline Check b6ee58a1-b097-4c6d-8600-eb81efc1468c
Check href links in metadata record van b6ee58a1-b097-4c6d-8600-eb81efc1468c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.490
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:02.032 [print] title:Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* print title 0.000
15:11:02.032 [print] Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:02.033 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:02.033 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b6ee58a1-b097-4c6d-8600-eb81efc1468c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:02.038 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "b6ee58a1-b097-4c6d-8600-eb81efc1468c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.818
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.857 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.005
15:11:02.045 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.045 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.301
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c"
}
> * print "testing xlinkurl: 0.000
15:11:02.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.349 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c
> Given url link 0.000
> When method HEAD 0.452
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:02.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
15:11:02.805 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.042
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:02.849 status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:02.851 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:02.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.854 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.855 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:02.857 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.905
Scenario Outline Check a322184d-6285-4856-bb78-f450b30ffc0e
Check href links in metadata record van a322184d-6285-4856-bb78-f450b30ffc0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.598
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:02.546 [print] title:Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* print title 0.000
15:11:02.546 [print] Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:02.547 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:02.548 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a322184d-6285-4856-bb78-f450b30ffc0e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:02.553 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7",
  "www.hydro.nl",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "a322184d-6285-4856-bb78-f450b30ffc0e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.650
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7}, {link=www.hydro.nl}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 363, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:03.204 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 363, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.000
15:11:02.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.556 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
15:11:02.837 status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
15:11:02.837 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
15:11:02.838 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.838 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.839 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
15:11:02.839 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:11:02.839 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:02.840 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.840 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.363
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 363, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:03.204 status code was: 500, expected: 200, response time: 363, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.685
Scenario Outline Check 17716ed7-ce0d-4bfd-8868-a398e5578a36
Check href links in metadata record van 17716ed7-ce0d-4bfd-8868-a398e5578a36
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.657
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:02.636 [print] title:Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* print title 0.000
15:11:02.637 [print] Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:02.638 [print] [
  "PPB-GVA@kadaster.nl",
  "ruimtelijkeplannen@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:02.639 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"17716ed7-ce0d-4bfd-8868-a398e5578a36","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.000
15:11:02.650 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"
]
* def id = "17716ed7-ce0d-4bfd-8868-a398e5578a36" 0.006
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.002
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:02.660 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"
}
> * print "testing xlinkurl: 0.000
15:11:02.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.659 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:02.660 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
15:11:02.660 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.271
Scenario Outline Check 002d9127-c16d-4b8d-9f5e-102a8c8e36c4
Check href links in metadata record van 002d9127-c16d-4b8d-9f5e-102a8c8e36c4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.687
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:02.704 [print] title:Geluidkaart hoofdspoornet 2016 (Lnight)
* print title 0.000
15:11:02.705 [print] Geluidkaart hoofdspoornet 2016 (Lnight)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:02.706 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:02.707 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"002d9127-c16d-4b8d-9f5e-102a8c8e36c4","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:02.711 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"
]
* def id = "002d9127-c16d-4b8d-9f5e-102a8c8e36c4" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.287
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 284, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
15:11:02.999 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 284, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"
}
> * print "testing xlinkurl: 0.000
15:11:02.714 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.714 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4
> Given url link 0.000
> When method HEAD 0.284
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 284, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
15:11:02.999 status code was: 400, expected: 200, response time: 284, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.831
Scenario Outline Check 68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
Check href links in metadata record van 68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.008
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.533
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:02.923 [print] title:Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* print title 0.000
15:11:02.923 [print] Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:02.925 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:02.926 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:02.929 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.642
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:03.572 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2"
}
> * print "testing xlinkurl: 0.000
15:11:02.932 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:02.932 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
> Given url link 0.000
> When method HEAD 0.436
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
15:11:03.370 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.370 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:11:03.571 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:03.571 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
15:11:03.571 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.571 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:03.572 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:03.572 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.826
Scenario Outline Check a5241416-8401-4623-be61-57ef50447a41
Check href links in metadata record van a5241416-8401-4623-be61-57ef50447a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5241416-8401-4623-be61-57ef50447a41' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.666
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5241416-8401-4623-be61-57ef50447a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:03.330 [print] title:Maritieme grenzen - Noordzee
* print title 0.000
15:11:03.330 [print] Maritieme grenzen - Noordzee
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:03.331 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:03.332 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a5241416-8401-4623-be61-57ef50447a41","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:03.335 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"
]
* def id = "a5241416-8401-4623-be61-57ef50447a41" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.576
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 280, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
15:11:03.913 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 280, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:11:03.339 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.339 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"
}
> * print "testing xlinkurl: 0.000
15:11:03.632 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.632 [print] testing xlinkurl:https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 280, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
15:11:03.913 status code was: 400, expected: 200, response time: 280, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.201
Scenario Outline Check 493ab81b-75f8-4205-b030-6b2fd9eb4295
Check href links in metadata record van 493ab81b-75f8-4205-b030-6b2fd9eb4295
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.683
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:03.545 [print] title:INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* print title 0.000
15:11:03.545 [print] INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:03.546 [print] [
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl",
  "info@cultureelerfgoed.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.003
15:11:03.551 [print] organisation: [
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed",
  "Rijksdienst voor het Cultureel Erfgoed"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"493ab81b-75f8-4205-b030-6b2fd9eb4295","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.003
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:11:03.557 [print] [
  "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"
]
* def id = "493ab81b-75f8-4205-b030-6b2fd9eb4295" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.751
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 749, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
15:11:04.310 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 749, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"
}
> * print "testing xlinkurl: 0.000
15:11:03.560 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.560 [print] testing xlinkurl:https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip
> Given url link 0.000
> When method HEAD 0.749
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 749, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
15:11:04.310 status code was: 404, expected: 200, response time: 749, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.996
Scenario Outline Check f44dac86-2228-412f-8355-e56446ca9933
Check href links in metadata record van f44dac86-2228-412f-8355-e56446ca9933
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f44dac86-2228-412f-8355-e56446ca9933' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f44dac86-2228-412f-8355-e56446ca9933' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:03.543 [print] title:Gebieden in de Eemsmonding en de Dollard
* print title 0.000
15:11:03.543 [print] Gebieden in de Eemsmonding en de Dollard
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:03.544 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:03.544 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f44dac86-2228-412f-8355-e56446ca9933","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:03.548 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933",
  "www.hydro.nl"
]
* def id = "f44dac86-2228-412f-8355-e56446ca9933" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.725
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933}, {link=www.hydro.nl}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 423, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.275 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:11:03.552 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.552 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/https://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.293
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"
}
> * print "testing xlinkurl: 0.000
15:11:03.847 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.848 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933
> Given url link 0.000
> When method HEAD 0.423
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 423, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
15:11:04.272 status code was: 500, expected: 200, response time: 423, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
15:11:04.272 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 423, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
15:11:04.274 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.274 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.274 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
15:11:04.274 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.200
Scenario Outline Check 58e7dc38-a498-4852-b4ef-908f5baa9056
Check href links in metadata record van 58e7dc38-a498-4852-b4ef-908f5baa9056
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.588
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:03.796 [print] title:Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* print title 0.000
15:11:03.796 [print] Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:03.797 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:03.797 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"58e7dc38-a498-4852-b4ef-908f5baa9056","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:03.801 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "58e7dc38-a498-4852-b4ef-908f5baa9056" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.803
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.606 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:11:03.805 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:03.805 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056"
}
> * print "testing xlinkurl: 0.000
15:11:04.105 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.105 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056
> Given url link 0.000
> When method HEAD 0.452
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:04.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.559 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.041
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:04.601 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:04.602 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:04.603 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.604 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.606 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:04.606 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.724
Scenario Outline Check 07575774-57a1-4419-bab4-6c88fdeb02b2
Check href links in metadata record van 07575774-57a1-4419-bab4-6c88fdeb02b2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:04.086 [print] title:Hydrografie waterschappen INSPIRE
* print title 0.000
15:11:04.087 [print] Hydrografie waterschappen INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:04.088 [print] [
  "datastromen@hetwaterschapshuis.nl",
  "datastromen@hetwaterschapshuis.nl",
  "",
  "datastromen@hetwaterschapshuis.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:04.089 [print] organisation: [
  "Het Waterschapshuis",
  "Het Waterschapshuis",
  "Het Waterschapshuis",
  "Het Waterschapshuis"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"07575774-57a1-4419-bab4-6c88fdeb02b2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:04.093 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/ETRS89",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"
]
* def id = "07575774-57a1-4419-bab4-6c88fdeb02b2" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.602
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/ETRS89}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
15:11:04.696 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/ETRS89"
}
> * print "testing xlinkurl: 0.000
15:11:04.096 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.096 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/ETRS89
> Given url link 0.000
> When method HEAD 0.285
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"
}
> * print "testing xlinkurl: 0.000
15:11:04.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.383 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
15:11:04.696 status code was: 500, expected: 200, response time: 312, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.989
Scenario Outline Check 71c2b7d2-a1a8-4836-b8d4-7247d331b04d
Check href links in metadata record van 71c2b7d2-a1a8-4836-b8d4-7247d331b04d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:04.458 [print] title:CBS Provincies 2012
* print title 0.000
15:11:04.458 [print] CBS Provincies 2012
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:04.460 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:04.461 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"71c2b7d2-a1a8-4836-b8d4-7247d331b04d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:04.465 [print] [
  "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip",
  ""
]
* def id = "71c2b7d2-a1a8-4836-b8d4-7247d331b04d" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.219
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.687 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip"
}
> * print "testing xlinkurl: 0.000
15:11:04.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.471 [print] testing xlinkurl:http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip
> Given url link 0.000
> When method HEAD 0.212
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:04.686 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.686 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:04.687 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:04.687 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.660
Scenario Outline Check df5ee213-e1bd-433b-80f7-4ea20f493ca8
Check href links in metadata record van df5ee213-e1bd-433b-80f7-4ea20f493ca8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.550
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:04.511 [print] title:Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
15:11:04.511 [print] Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:04.512 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:04.514 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"df5ee213-e1bd-433b-80f7-4ea20f493ca8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:04.518 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "df5ee213-e1bd-433b-80f7-4ea20f493ca8" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.551
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.071 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8"
}
> * print "testing xlinkurl: 0.000
15:11:04.522 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.523 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8
> Given url link 0.000
> When method HEAD 0.507
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:05.032 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.032 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.036
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:05.069 status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:05.069 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:05.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.071 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.071 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:05.071 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.300
Scenario Outline Check f8d840bc-18df-4449-b797-b9adcb81d3ec
Check href links in metadata record van f8d840bc-18df-4449-b797-b9adcb81d3ec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.564
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:04.844 [print] title:Emissies naar lucht en water in 2015 vanuit de industrie
* print title 0.001
15:11:04.845 [print] Emissies naar lucht en water in 2015 vanuit de industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:04.846 [print] [
  "emissieregistratie@rivm.nl",
  "",
  "emissieregistratie@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:04.848 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f8d840bc-18df-4449-b797-b9adcb81d3ec","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:04.851 [print] [
  "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"
]
* def id = "f8d840bc-18df-4449-b797-b9adcb81d3ec" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.363
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:05.216 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"
}
> * print "testing xlinkurl: 0.000
15:11:04.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.855 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:05.216 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
15:11:05.216 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.431
Scenario Outline Check 88f76a94-ee4d-4e0c-9fde-91b692403e39
Check href links in metadata record van 88f76a94-ee4d-4e0c-9fde-91b692403e39
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.581
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:04.896 [print] title:Natuurbranden
* print title 0.000
15:11:04.896 [print] Natuurbranden
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:04.898 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:04.900 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"88f76a94-ee4d-4e0c-9fde-91b692403e39","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:04.904 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "88f76a94-ee4d-4e0c-9fde-91b692403e39" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.920
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.826 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:11:04.908 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:04.909 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39"
}
> * print "testing xlinkurl: 0.000
15:11:05.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.200 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39
> Given url link 0.000
> When method HEAD 0.570
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:05.772 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.772 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.044
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:05.816 status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:05.818 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:05.819 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.819 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.819 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:05.826 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.253
Scenario Outline Check wt-83730-e750-485a-9c0c-39bf9be72cf8
Check href links in metadata record van wt-83730-e750-485a-9c0c-39bf9be72cf8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.174 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* print title 0.000
15:11:05.174 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:05.174 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "info@wetransform.to"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:05.176 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Wetransform"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"wt-83730-e750-485a-9c0c-39bf9be72cf8","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:05.181 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
]
* def id = "wt-83730-e750-485a-9c0c-39bf9be72cf8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.840
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:06.023 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8"
}
> * print "testing xlinkurl: 0.000
15:11:05.185 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.185 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:11:05.495 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.496 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:11:05.698 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:11:05.698 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:11:05.699 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.699 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.323
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:06.023 status code was: 500, expected: 200, response time: 324, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.713
Scenario Outline Check adn73c4a-ef03-4785-b7f6-942e86b385f7
Check href links in metadata record van adn73c4a-ef03-4785-b7f6-942e86b385f7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.231 [print] title:Bathymetrie Nederland - binnenwateren
* print title 0.000
15:11:05.231 [print] Bathymetrie Nederland - binnenwateren
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:05.232 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:05.233 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"adn73c4a-ef03-4785-b7f6-942e86b385f7","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:05.238 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f7" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.582
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:05.821 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.000
15:11:05.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.242 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.375
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
15:11:05.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.620 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:11:05.820 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:05.820 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
15:11:05.821 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.821 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:05.821 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:05.821 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.654
Scenario Outline Check 1be28290-55fa-4486-b9d3-b9d147117863
Check href links in metadata record van 1be28290-55fa-4486-b9d3-b9d147117863
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1be28290-55fa-4486-b9d3-b9d147117863' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.616
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1be28290-55fa-4486-b9d3-b9d147117863' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.316 [print] title:Luchtfoto 2016 25cm CIR open data
* print title 0.000
15:11:05.316 [print] Luchtfoto 2016 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:05.317 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:05.319 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1be28290-55fa-4486-b9d3-b9d147117863","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:05.323 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015",
  "",
  "",
  ""
]
* def id = "1be28290-55fa-4486-b9d3-b9d147117863" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.016
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b015}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.340 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"
}
> * print "testing xlinkurl: 0.000
15:11:05.326 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.326 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:05.327 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
15:11:05.327 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:05.328 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:05.329 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.329 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.330 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:05.330 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:05.333 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.335 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.335 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.336 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:05.336 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:05.336 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.337 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.338 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:05.338 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:05.340 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.790
Scenario Outline Check E7D9F0D6-2B8D-6699-F26E-4A781228F2DD
Check href links in metadata record van E7D9F0D6-2B8D-6699-F26E-4A781228F2DD
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.604
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.683 [print] title:BRO REGIS II Hydrogeologisch model (HGM)
* print title 0.000
15:11:05.683 [print] BRO REGIS II Hydrogeologisch model (HGM)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:05.684 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:05.685 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"E7D9F0D6-2B8D-6699-F26E-4A781228F2DD","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:11:05.693 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"
]
* def id = "E7D9F0D6-2B8D-6699-F26E-4A781228F2DD" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.586
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
15:11:06.280 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
15:11:05.696 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.697 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.001
15:11:05.998 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.999 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
15:11:06.279 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.898
Scenario Outline Check 3387ef8a-9237-453a-aa4e-585d1e193550
Check href links in metadata record van 3387ef8a-9237-453a-aa4e-585d1e193550
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3387ef8a-9237-453a-aa4e-585d1e193550' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3387ef8a-9237-453a-aa4e-585d1e193550' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.763 [print] title:Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* print title 0.000
15:11:05.764 [print] Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:05.765 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:11:05.767 [print] organisation: [
  "Ministerie van Economische Zaken - GIS Competence Center",
  "Ministerie van Landbouw, Natuur en Voedselkwaliteit",
  "Ministerie van Economische Zaken - GIS Competence Center"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"3387ef8a-9237-453a-aa4e-585d1e193550","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.003
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:05.776 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl"
]
* def id = "3387ef8a-9237-453a-aa4e-585d1e193550" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.671
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:06.448 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:11:05.779 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.779 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550"
}
> * print "testing xlinkurl: 0.000
15:11:06.082 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.082 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:06.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.399 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.047
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:06.447 status code was: 404, expected: 200, response time: 47, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.730
Scenario Outline Check 7D35598D-DFBF-C64D-0F1A-92A80A45EB14
Check href links in metadata record van 7D35598D-DFBF-C64D-0F1A-92A80A45EB14
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.570
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:05.914 [print] title:BRO GeoTOP (GTM)
* print title 0.000
15:11:05.914 [print] BRO GeoTOP (GTM)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:05.915 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:05.917 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7D35598D-DFBF-C64D-0F1A-92A80A45EB14","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:05.920 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"
]
* def id = "7D35598D-DFBF-C64D-0F1A-92A80A45EB14" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.576
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
15:11:06.497 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
15:11:05.923 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:05.924 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.291
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
15:11:06.217 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.217 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
15:11:06.497 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.176
Scenario Outline Check 03671a9e-6aaf-464d-be99-9aad25cef9e3
Check href links in metadata record van 03671a9e-6aaf-464d-be99-9aad25cef9e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.517
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:06.342 [print] title:Habitatrichtlijn verspreidingsgebied van habitattypen
* print title 0.000
15:11:06.342 [print] Habitatrichtlijn verspreidingsgebied van habitattypen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:06.344 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "",
  "GeoDesk.CGI@wur.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheerPDOK@kadaster.nl",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:06.346 [print] organisation: [
  "Ministerie van Economische Zaken - GIS Competence Center",
  "",
  "Wageningen Environmental Research (Alterra)",
  "PDOK",
  "Alterra"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"03671a9e-6aaf-464d-be99-9aad25cef9e3","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:06.353 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
]
* def id = "03671a9e-6aaf-464d-be99-9aad25cef9e3" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.825
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"
}
> * print "testing xlinkurl: 0.000
15:11:06.360 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.361 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
15:11:06.642 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:11:06.642 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
15:11:06.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.643 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.535
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.257
Scenario Outline Check 60a2a7c2-d5b3-4ad5-b562-c448695357fb
Check href links in metadata record van 60a2a7c2-d5b3-4ad5-b562-c448695357fb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.563
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:06.393 [print] title:Nationale Landschappen
* print title 0.000
15:11:06.393 [print] Nationale Landschappen
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:06.395 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:06.395 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"60a2a7c2-d5b3-4ad5-b562-c448695357fb","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.005
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:06.404 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "60a2a7c2-d5b3-4ad5-b562-c448695357fb" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.843
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:07.248 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:11:06.407 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.408 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb"
}
> * print "testing xlinkurl: 0.000
15:11:06.722 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.722 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb
> Given url link 0.000
> When method HEAD 0.479
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:07.203 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.203 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.036
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:07.240 status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:07.242 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:07.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.244 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:07.245 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:07.246 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.332
Scenario Outline Check uwwtd-9d8e-4758-83fa-28b057f185e2
Check href links in metadata record van uwwtd-9d8e-4758-83fa-28b057f185e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:11:06.540 [print] title:Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* print title 0.000
15:11:06.540 [print] Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:06.542 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:11:06.544 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"uwwtd-9d8e-4758-83fa-28b057f185e2","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:06.548 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.904
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 273, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:07.455 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2"
}
> * print "testing xlinkurl: 0.000
15:11:06.552 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.552 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
15:11:06.864 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.864 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 273, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:11:07.138 status code was: 404, expected: 200, response time: 273, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:11:07.138 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 273, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
15:11:07.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.139 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:07.453 status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:07.453 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:07.454 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.454 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:07.455 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:07.455 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.549
Scenario Outline Check F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275
Check href links in metadata record van F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:06.822 [print] title:BRO Digital Geological Model (DGM)
* print title 0.000
15:11:06.822 [print] BRO Digital Geological Model (DGM)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:06.823 [print] [
  "info@bro.nl",
  "info@bro.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:06.824 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:06.828 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.002
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:07.831 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
15:11:06.832 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:06.832 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.282
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
15:11:07.115 status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:11:07.115 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
15:11:07.116 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.116 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:11:07.316 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"
}
> * print "testing xlinkurl: 0.000
15:11:07.316 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:11:07.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.317 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/#
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
15:11:07.516 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:11:07.516 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
15:11:07.517 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.518 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:07.831 status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.559
Scenario Outline Check 1a40eb6f-4f33-4e15-a0b1-2d350ad2636e
Check href links in metadata record van 1a40eb6f-4f33-4e15-a0b1-2d350ad2636e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.544
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:06.996 [print] title:Geografische Namen (INSPIRE geharmoniseerd)
* print title 0.000
15:11:06.996 [print] Geografische Namen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:06.998 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:06.999 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"1a40eb6f-4f33-4e15-a0b1-2d350ad2636e","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:07.003 [print] [
  "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"
]
* def id = "1a40eb6f-4f33-4e15-a0b1-2d350ad2636e" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.002
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:07.007 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"
}
> * print "testing xlinkurl: 0.000
15:11:07.006 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.006 [print] testing xlinkurl:http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:07.007 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
15:11:07.007 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3.463
Scenario Outline Check 6c1cf452-8c62-4046-99ab-640a5e184f9c
Check href links in metadata record van 6c1cf452-8c62-4046-99ab-640a5e184f9c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.003
* print 'title:' + title 0.001
15:11:07.015 [print] title:Geologisch booronderzoek onder INSPIRE
* print title 0.000
15:11:07.016 [print] Geologisch booronderzoek onder INSPIRE
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:07.016 [print] [
  "info@dinoloket.nl",
  "info@dinoloket.nl",
  "info@dinoloket.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:07.017 [print] organisation: [
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland",
  "TNO Geologische Dienst Nederland"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"6c1cf452-8c62-4046-99ab-640a5e184f9c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:11:07.022 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
]
* def id = "6c1cf452-8c62-4046-99ab-640a5e184f9c" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.473
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:08.498 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"
}
> * print "testing xlinkurl: 0.000
15:11:07.029 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.030 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
15:11:07.310 status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
15:11:07.311 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
15:11:07.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.314 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:11:07.516 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
15:11:07.519 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
15:11:07.520 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.520 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.668
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:11:08.188 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
15:11:08.189 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
15:11:08.190 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.190 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
15:11:08.498 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.106
Scenario Outline Check 34e95842-4e4e-46de-9198-79e8cd4d30dc
Check href links in metadata record van 34e95842-4e4e-46de-9198-79e8cd4d30dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:07.540 [print] title:Geografische Namen (Nat) - Nederland
* print title 0.000
15:11:07.540 [print] Geografische Namen (Nat) - Nederland
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:07.541 [print] [
  "data@hydro.nl",
  "data@hydro.nl",
  "data@hydro.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:07.542 [print] organisation: [
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie",
  "Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"34e95842-4e4e-46de-9198-79e8cd4d30dc","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:07.545 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"
]
* def id = "34e95842-4e4e-46de-9198-79e8cd4d30dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.284
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
15:11:07.832 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"
}
> * print "testing xlinkurl: 0.000
15:11:07.550 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.551 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
15:11:07.831 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.186
Scenario Outline Check 8f45b8ef-0ce8-463a-9059-5efdcecb785c
Check href links in metadata record van 8f45b8ef-0ce8-463a-9059-5efdcecb785c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.574
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:07.758 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* print title 0.000
15:11:07.758 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.001
* print email 0.000
15:11:07.759 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:07.761 [print] organisation: [
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"8f45b8ef-0ce8-463a-9059-5efdcecb785c","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:07.765 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258",
  "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"
]
* def id = "8f45b8ef-0ce8-463a-9059-5efdcecb785c" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.302
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258}, {link=http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:08.068 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258"
}
> * print "testing xlinkurl: 0.000
15:11:07.768 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:07.768 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/4258
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"
}
> * print "testing xlinkurl: 0.000
15:11:08.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.067 [print] testing xlinkurl:http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:08.068 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
15:11:08.068 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.601
Scenario Outline Check afc450bd-65b3-4e59-b0fb-619869bf6ada
Check href links in metadata record van afc450bd-65b3-4e59-b0fb-619869bf6ada
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.577
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:08.040 [print] title:Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* print title 0.000
15:11:08.041 [print] Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:08.042 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:08.043 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"afc450bd-65b3-4e59-b0fb-619869bf6ada","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.004
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:08.050 [print] [
  ""
]
* def id = "afc450bd-65b3-4e59-b0fb-619869bf6ada" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.004
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:08.056 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:08.054 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.054 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:08.055 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:08.055 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.281
Scenario Outline Check 5800f3b0-2ea2-4231-8165-216a7b26867f
Check href links in metadata record van 5800f3b0-2ea2-4231-8165-216a7b26867f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:08.386 [print] title:Gemeten Koolstofmonoxide concentraties in buitenlucht.
* print title 0.000
15:11:08.386 [print] Gemeten Koolstofmonoxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:08.388 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:08.389 [print] organisation: RIVM
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5800f3b0-2ea2-4231-8165-216a7b26867f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:08.393 [print] [
  "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"
]
* def id = "5800f3b0-2ea2-4231-8165-216a7b26867f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:08.755 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"
}
> * print "testing xlinkurl: 0.000
15:11:08.397 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.398 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:08.755 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
15:11:08.755 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.336
Scenario Outline Check b3ec8793-7747-4da0-b6c3-aa384446a586
Check href links in metadata record van b3ec8793-7747-4da0-b6c3-aa384446a586
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.001
And param request = 'GetRecordById' 0.000
And param id = 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.603
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:11:08.441 [print] title:Gemeten Fijn stof concentraties in buitenlucht.
* print title 0.000
15:11:08.441 [print] Gemeten Fijn stof concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:08.442 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:08.443 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"b3ec8793-7747-4da0-b6c3-aa384446a586","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:08.447 [print] [
  "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"
]
* def id = "b3ec8793-7747-4da0-b6c3-aa384446a586" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.361
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:08.810 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"
}
> * print "testing xlinkurl: 0.000
15:11:08.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.451 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:08.810 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
15:11:08.810 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.280
Scenario Outline Check 733559a5-201d-40e5-ad43-d1c7bae84d9f
Check href links in metadata record van 733559a5-201d-40e5-ad43-d1c7bae84d9f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:08.602 [print] title:Gemeten Stikstofdioxide concentraties in buitenlucht.
* print title 0.000
15:11:08.603 [print] Gemeten Stikstofdioxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:08.604 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:08.606 [print] organisation: RIVM
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"733559a5-201d-40e5-ad43-d1c7bae84d9f","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:08.609 [print] [
  "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"
]
* def id = "733559a5-201d-40e5-ad43-d1c7bae84d9f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.364
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 360, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
15:11:08.975 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 360, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"
}
> * print "testing xlinkurl: 0.000
15:11:08.612 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.612 [print] testing xlinkurl:https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6
> Given url link 0.000
> When method HEAD 0.360
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 360, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
15:11:08.974 status code was: 404, expected: 200, response time: 360, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.242
Scenario Outline Check ror-9d8e-4758-83fx-28b057f185g1
Check href links in metadata record van ror-9d8e-4758-83fx-28b057f185g1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185g1' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.575
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185g1' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
15:11:08.649 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* print title 0.000
15:11:08.650 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:11:08.652 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:08.654 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"ror-9d8e-4758-83fx-28b057f185g1","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:08.659 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "ror-9d8e-4758-83fx-28b057f185g1" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.827
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:09.487 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1"
}
> * print "testing xlinkurl: 0.000
15:11:08.662 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.663 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.001
15:11:08.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:08.976 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:11:09.176 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:11:09.176 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
15:11:09.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.177 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:09.485 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:09.485 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:09.486 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.487 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:09.487 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:09.487 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.262
Scenario Outline Check 49ab8bee-b467-486a-96ca-b950443c453a
Check href links in metadata record van 49ab8bee-b467-486a-96ca-b950443c453a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '49ab8bee-b467-486a-96ca-b950443c453a' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ab8bee-b467-486a-96ca-b950443c453a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:09.026 [print] title:Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
15:11:09.027 [print] Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.001
15:11:09.028 [print] [
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl",
  "inspire@gbo-provincies.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.001
15:11:09.030 [print] organisation: [
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg",
  "Interprovinciaal Overleg"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"49ab8bee-b467-486a-96ca-b950443c453a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:09.036 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  ""
]
* def id = "49ab8bee-b467-486a-96ca-b950443c453a" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.863
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.901 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
15:11:09.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.041 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.329
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a"
}
> * print "testing xlinkurl: 0.000
15:11:09.373 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:11:09.374 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a
> Given url link 0.000
> When method HEAD 0.473
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:09.850 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.850 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.049
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:09.899 status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:09.899 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:09.900 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.900 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.901 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:09.901 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.304
Scenario Outline Check af135cd8-d429-4fc7-b9e3-09e15217520d
Check href links in metadata record van af135cd8-d429-4fc7-b9e3-09e15217520d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.574
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:09.335 [print] title:Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* print title 0.000
15:11:09.335 [print] Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:09.336 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:09.337 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"af135cd8-d429-4fc7-b9e3-09e15217520d","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:09.341 [print] [
  "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"
]
* def id = "af135cd8-d429-4fc7-b9e3-09e15217520d" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.702 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"
}
> * print "testing xlinkurl: 0.000
15:11:09.345 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.345 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.702 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
15:11:09.702 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.321
Scenario Outline Check 500d396f-5ec6-4e4b-a151-5fb3cddd8082
Check href links in metadata record van 500d396f-5ec6-4e4b-a151-5fb3cddd8082
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.578
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:09.394 [print] title:Gemeten Zwaveldioxide concentraties in buitenlucht.
* print title 0.000
15:11:09.395 [print] Gemeten Zwaveldioxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:09.396 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:09.398 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"500d396f-5ec6-4e4b-a151-5fb3cddd8082","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
15:11:09.402 [print] [
  "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"
]
* def id = "500d396f-5ec6-4e4b-a151-5fb3cddd8082" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.365
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.769 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"
}
> * print "testing xlinkurl: 0.000
15:11:09.405 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.406 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
> Given url link 0.000
> When method HEAD 0.363
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.769 javax.net.ssl.SSLException: Connection reset, http call failed after 363 milliseconds for URL: https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
15:11:09.769 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.270
Scenario Outline Check f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833
Check href links in metadata record van f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.002
15:11:09.497 [print] title:Gemeten Stikstofmonoxide concentraties in buitenlucht.
* print title 0.000
15:11:09.497 [print] Gemeten Stikstofmonoxide concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:09.498 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:09.499 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:09.516 [print] [
  "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"
]
* def id = "f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.365
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.883 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"
}
> * print "testing xlinkurl: 0.000
15:11:09.520 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.520 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
> Given url link 0.000
> When method HEAD 0.362
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:09.882 javax.net.ssl.SSLException: Connection reset, http call failed after 362 milliseconds for URL: https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
15:11:09.883 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.275
Scenario Outline Check d8f370e8-123c-4ab3-9410-04f728327ac6
Check href links in metadata record van d8f370e8-123c-4ab3-9410-04f728327ac6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:10.009 [print] title:Gemeten Ozon concentraties in buitenlucht.
* print title 0.000
15:11:10.009 [print] Gemeten Ozon concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.010 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.004
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.014 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d8f370e8-123c-4ab3-9410-04f728327ac6","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
15:11:10.022 [print] [
  "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"
]
* def id = "d8f370e8-123c-4ab3-9410-04f728327ac6" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.376
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.400 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"
}
> * print "testing xlinkurl: 0.000
15:11:10.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.040 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.400 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
15:11:10.400 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.072
Scenario Outline Check a29917b9-3426-4041-a11b-69bcb2256904
Check href links in metadata record van a29917b9-3426-4041-a11b-69bcb2256904
Steps
Given path 'geonetwork/srv/dut/inspire' 0.003
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a29917b9-3426-4041-a11b-69bcb2256904' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.420
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a29917b9-3426-4041-a11b-69bcb2256904' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:09.913 [print] title:Kadastrale kaart v4
* print title 0.000
15:11:09.913 [print] Kadastrale kaart v4
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:09.914 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "kcc@kadaster.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:09.915 [print] organisation: [
  "Kadaster",
  "Kadaster en Openbare Registers",
  "Dienst voor het Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"a29917b9-3426-4041-a11b-69bcb2256904","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
15:11:09.921 [print] [
  "h",
  "t",
  "t",
  "p",
  "s",
  ":",
  "/",
  "/",
  "w",
  "w",
  "w",
  ".",
  "n",
  "a",
  "t",
  "i",
  "o",
  "n",
  "a",
  "a",
  "l",
  "g",
  "e",
  "o",
  "r",
  "e",
  "g",
  "i",
  "s",
  "t",
  "e",
  "r",
  ".",
  "n",
  "l",
  ":",
  "4",
  "4",
  "3",
  "/",
  "g",
  "e",
  "o",
  "n",
  "e",
  "t",
  "w",
  "o",
  "r",
  "k",
  "/",
  "s",
  "r",
  "v",
  "/",
  "e",
  "n",
  "g",
  "/",
  "t",
  "h",
  "e",
  "s",
  "a",
  "u",
  "r",
  "u",
  "s",
  ".",
  "d",
  "o",
  "w",
  "n",
  "l",
  "o",
  "a",
  "d",
  "?",
  "r",
  "e",
  "f",
  "=",
  "e",
  "x",
  "t",
  "e",
  "r",
  "n",
  "a",
  "l",
  ".",
  "t",
  "h",
  "e",
  "m",
  "e",
  ".",
  "h",
  "t",
  "t",
  "p",
  "i",
  "n",
  "s",
  "p",
  "i",
  "r",
  "e",
  "e",
  "c",
  "e",
  "u",
  "r",
  "o",
  "p",
  "a",
  "e",
  "u",
  "t",
  "h",
  "e",
  "m",
  "e",
  "-",
  "t",
  "h",
  "e",
  "m",
  "e"
]
* def id = "a29917b9-3426-4041-a11b-69bcb2256904" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.347
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=s}, {link=:}, {link=/}, {link=/}, {link=w}, {link=w}, {link=w}, {link=.}, {link=n}, {link=a}, {link=t}, {link=i}, {link=o}, {link=n}, {link=a}, {link=a}, {link=l}, {link=g}, {link=e}, {link=o}, {link=r}, {link=e}, {link=g}, {link=i}, {link=s}, {link=t}, {link=e}, {link=r}, {link=.}, {link=n}, {link=l}, {link=:}, {link=4}, {link=4}, {link=3}, {link=/}, {link=g}, {link=e}, {link=o}, {link=n}, {link=e}, {link=t}, {link=w}, {link=o}, {link=r}, {link=k}, {link=/}, {link=s}, {link=r}, {link=v}, {link=/}, {link=e}, {link=n}, {link=g}, {link=/}, {link=t}, {link=h}, {link=e}, {link=s}, {link=a}, {link=u}, {link=r}, {link=u}, {link=s}, {link=.}, {link=d}, {link=o}, {link=w}, {link=n}, {link=l}, {link=o}, {link=a}, {link=d}, {link=?}, {link=r}, {link=e}, {link=f}, {link==}, {link=e}, {link=x}, {link=t}, {link=e}, {link=r}, {link=n}, {link=a}, {link=l}, {link=.}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=.}, {link=h}, {link=t}, {link=t}, {link=p}, {link=i}, {link=n}, {link=s}, {link=p}, {link=i}, {link=r}, {link=e}, {link=e}, {link=c}, {link=e}, {link=u}, {link=r}, {link=o}, {link=p}, {link=a}, {link=e}, {link=u}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=-}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.268 feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:11:09.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
15:11:09.928 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.929 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:09.929 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:09.929 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.929 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
15:11:09.931 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.931 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:09.931 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:09.931 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.932 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.932 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.932 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:09.932 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:11:09.933 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.933 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.933 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.933 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:11:09.933 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:11:09.934 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.934 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.934 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.935 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:09.935 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
15:11:09.935 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.935 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.935 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:11:09.936 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:11:09.936 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:11:09.936 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.936 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.937 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:09.937 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:11:09.937 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.937 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.938 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:09.938 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:11:09.938 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.938 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.938 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.939 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:11:09.939 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:11:09.939 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.939 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.939 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.940 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:11:09.940 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:11:09.940 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.940 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.940 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.941 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:11:09.941 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:11:09.941 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.941 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.941 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.942 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:11:09.942 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:09.942 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.942 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.942 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.943 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:09.943 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:09.943 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.943 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.944 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:09.944 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:09.944 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.944 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.944 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.945 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:09.945 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:11:09.945 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.945 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.945 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.946 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:11:09.946 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:09.946 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.946 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.947 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:09.947 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.012
15:11:09.947 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.959 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.960 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.960 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:09.960 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:09.960 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.961 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.961 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.962 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:09.962 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:09.962 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.962 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.962 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.963 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:09.963 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:11:09.963 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.964 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.964 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:11:09.964 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:11:09.964 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.965 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.965 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.965 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:11:09.965 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:09.965 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.966 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.966 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:09.966 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:09.966 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.967 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.967 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.967 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:09.967 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:09.968 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.968 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.968 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.968 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:09.969 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.003
15:11:09.969 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.973 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.973 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:09.974 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.001
15:11:09.974 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.976 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.976 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:11:09.976 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.007
15:11:09.976 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.984 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.984 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.984 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:11:09.984 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:11:09.984 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.985 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.985 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.985 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:09.985 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:09.985 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.986 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.986 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.986 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:09.986 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:09.986 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.987 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.987 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.987 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:09.987 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:09.988 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.988 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.988 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.989 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:09.989 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:11:09.989 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.989 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.989 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.990 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:11:09.990 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:09.990 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.990 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.991 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:09.991 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:11:09.991 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.991 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.993 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.993 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:11:09.993 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.003
15:11:09.993 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.997 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.997 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:11:09.997 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.000
15:11:09.997 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
15:11:09.998 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:09.998 [print] testing xlinkurl:4
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:09.998 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
15:11:09.998 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.001
15:11:09.998 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.000 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.001 [print] testing xlinkurl:4
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.002 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
15:11:10.002 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.002
15:11:10.003 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.005 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.005 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.010 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
15:11:10.011 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.002
15:11:10.011 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.013 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.014 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.015 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:10.016 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.001
15:11:10.016 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.018 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.019 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.020 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:11:10.020 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.002
15:11:10.020 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.023 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.028 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.028 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:10.028 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.029 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.029 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.029 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:10.029 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:10.029 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.030 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.030 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.030 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:10.030 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.030 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.031 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.031 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.031 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.031 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:10.031 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.032 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.032 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.039 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.039 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
15:11:10.039 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.040 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.041 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:11:10.041 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:10.041 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.042 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.042 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.042 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:10.042 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.042 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.043 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.043 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.043 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.043 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "k"
}
> * print "testing xlinkurl: 0.000
15:11:10.043 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.044 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.044 [print] testing xlinkurl:k
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.044 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: k
15:11:10.044 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:11:10.044 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.045 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.045 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.045 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:10.045 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:11:10.045 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.046 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.046 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.046 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:10.046 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.047 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.047 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.047 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.047 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.048 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.001
15:11:10.048 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.050 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.050 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.051 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
15:11:10.051 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
15:11:10.052 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.054 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.054 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.055 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:10.056 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.010
15:11:10.056 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.066 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.067 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.067 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:10.067 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.067 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.068 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:10.068 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
15:11:10.068 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.068 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.069 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.072 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
15:11:10.072 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
15:11:10.072 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.073 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.073 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.073 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
15:11:10.073 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:10.073 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.074 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.074 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.075 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.075 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:11:10.075 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.075 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.080 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:10.080 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.081 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.082 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.082 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.083 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
15:11:10.083 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.084 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.084 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.084 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:10.084 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.001
15:11:10.084 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.086 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.086 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.086 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:10.086 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
15:11:10.086 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.088 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.089 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.091 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:11:10.091 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.091 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.092 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.092 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.093 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.093 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
15:11:10.094 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.095 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.095 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.096 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:11:10.096 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
15:11:10.097 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.099 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.099 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.101 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:10.101 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:11:10.101 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.102 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.103 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.103 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:11:10.103 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:11:10.103 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.105 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.105 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.105 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:11:10.105 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.002
15:11:10.105 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.108 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.110 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:10.110 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.001
15:11:10.110 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.112 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.112 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.112 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
15:11:10.112 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:10.112 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.113 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.113 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:10.113 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:11:10.113 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.114 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.114 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:11:10.114 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:10.114 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.114 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.116 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:10.116 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:10.116 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.117 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.117 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.117 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:10.117 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
15:11:10.117 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.118 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.118 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.118 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
15:11:10.118 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "?"
}
> * print "testing xlinkurl: 0.000
15:11:10.118 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.119 [print] testing xlinkurl:?
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.119 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: ?
15:11:10.119 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.119 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.120 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.120 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.120 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.120 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.120 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.121 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.121 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.121 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.121 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
15:11:10.121 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.122 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.122 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.122 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
15:11:10.122 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "="
}
> * print "testing xlinkurl: 0.000
15:11:10.122 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.123 [print] testing xlinkurl:=
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.124 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: =
15:11:10.124 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.124 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.124 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.124 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.125 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.125 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.000
15:11:10.125 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.126 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.126 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.126 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
15:11:10.126 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.004
15:11:10.126 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.131 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.131 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.131 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.131 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.002
15:11:10.131 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.134 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.135 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
15:11:10.135 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.137 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.137 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.138 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.138 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:10.138 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.138 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.139 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.139 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:10.139 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:10.139 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.139 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.140 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:10.140 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
15:11:10.140 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.140 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.141 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
15:11:10.141 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:11:10.142 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.142 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.142 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.143 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:11:10.143 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:10.143 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.143 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.143 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.144 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.144 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.002
15:11:10.144 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.147 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.147 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.147 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:10.148 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.005
15:11:10.148 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.153 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.153 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.154 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.154 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
15:11:10.154 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.154 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.154 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.155 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:11:10.155 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.155 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.155 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.155 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.155 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.156 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
15:11:10.156 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.156 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.156 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.156 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
15:11:10.156 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:11:10.157 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.157 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.157 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.157 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:10.157 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:10.158 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.158 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.158 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.158 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.158 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
15:11:10.159 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.159 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.159 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.159 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.159 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:11:10.160 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.160 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.161 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.161 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:11:10.161 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[101] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
15:11:10.161 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.163 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.163 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:11:10.164 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[102] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
15:11:10.164 feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.165 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.165 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.165 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
15:11:10.165 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[103] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
15:11:10.165 feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.168 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.169 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
15:11:10.169 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[104] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:11:10.169 feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.170 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.170 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.170 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:11:10.170 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[105] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
15:11:10.170 feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.171 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.171 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.171 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
15:11:10.171 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[106] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.171 feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.172 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.172 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.172 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.172 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[107] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.173 feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.173 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.173 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.174 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.174 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[108] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.174 feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.174 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.174 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.175 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.175 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[109] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
15:11:10.175 feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.176 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.176 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
15:11:10.176 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[110] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.176 feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.177 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.177 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.177 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[111] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
15:11:10.177 feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.178 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.178 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.178 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:11:10.178 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[112] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
15:11:10.178 feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.179 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.179 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
15:11:10.179 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[113] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
15:11:10.179 feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.180 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.180 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.180 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
15:11:10.180 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[114] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
15:11:10.180 feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.181 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.181 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.181 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
15:11:10.181 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[115] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
15:11:10.181 feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.182 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.182 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.189 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
15:11:10.189 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[116] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
15:11:10.189 feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.191 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.191 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.191 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[117] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
15:11:10.191 feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.193 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.193 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.193 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
15:11:10.193 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[118] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.001
15:11:10.193 feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.196 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.196 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.196 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.196 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[119] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.001
15:11:10.196 feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.198 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.198 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.198 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:10.199 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[120] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
15:11:10.199 feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.200 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.201 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.201 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[121] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.002
15:11:10.201 feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.205 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.205 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.205 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:11:10.206 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[122] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.012
15:11:10.206 feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.219 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.219 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.219 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[123] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "-"
}
> * print "testing xlinkurl: 0.000
15:11:10.219 feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.220 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.220 [print] testing xlinkurl:-
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.220 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: -
15:11:10.220 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[124] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.011
15:11:10.220 feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.231 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.232 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.232 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
15:11:10.232 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[125] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
15:11:10.232 feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.233 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.233 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.235 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
15:11:10.235 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[126] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.002
15:11:10.236 feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.243 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.243 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.244 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.244 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[127] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.007
15:11:10.244 feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.251 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.005
15:11:10.258 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.008
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.263 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
15:11:10.267 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[128] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
15:11:10.267 feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.268 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.268 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.268 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
15:11:10.268 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.289
Scenario Outline Check d3c9efd6-fca7-49d6-92bb-5f507abece90
Check href links in metadata record van d3c9efd6-fca7-49d6-92bb-5f507abece90
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:10.238 [print] title:Gemeten Ammoniak concentraties in buitenlucht.
* print title 0.000
15:11:10.238 [print] Gemeten Ammoniak concentraties in buitenlucht.
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.239 [print] [
  "geodata@rivm.nl",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.240 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"d3c9efd6-fca7-49d6-92bb-5f507abece90","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.008
15:11:10.252 [print] [
  "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"
]
* def id = "d3c9efd6-fca7-49d6-92bb-5f507abece90" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.376
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.629 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"
}
> * print "testing xlinkurl: 0.007
15:11:10.272 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.272 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.629 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
15:11:10.629 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.288
Scenario Outline Check 588a4cb1-b442-4ac1-87e4-40401e353166
Check href links in metadata record van 588a4cb1-b442-4ac1-87e4-40401e353166
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '588a4cb1-b442-4ac1-87e4-40401e353166' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.561
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '588a4cb1-b442-4ac1-87e4-40401e353166' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:10.334 [print] title:Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* print title 0.000
15:11:10.334 [print] Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.335 [print] [
  "geodata@rivm.nl",
  "",
  "geodata@rivm.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.335 [print] organisation: no organisationName found in dataset record
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"588a4cb1-b442-4ac1-87e4-40401e353166","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:10.338 [print] [
  "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"
]
* def id = "588a4cb1-b442-4ac1-87e4-40401e353166" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.360
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.700 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"
}
> * print "testing xlinkurl: 0.000
15:11:10.342 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.342 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
15:11:10.700 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
15:11:10.700 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.640
Scenario Outline Check 29c17585-e702-463f-a5dc-99d34b17d333
Check href links in metadata record van 29c17585-e702-463f-a5dc-99d34b17d333
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29c17585-e702-463f-a5dc-99d34b17d333' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.586
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29c17585-e702-463f-a5dc-99d34b17d333' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:10.474 [print] title:RDinfo
* print title 0.001
15:11:10.475 [print] RDinfo
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.477 [print] [
  "PPB-GVA@kadaster.nl",
  "kcc@kadaster.nl",
  "rd@kadaster.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.478 [print] organisation: [
  "Kadaster",
  "Dienst van Het Kadaster en Openbare Registers",
  "Dienst voor het Kadaster en de Openbare Registers"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"29c17585-e702-463f-a5dc-99d34b17d333","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.001
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:10.485 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"
]
* def id = "29c17585-e702-463f-a5dc-99d34b17d333" 0.015
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.016
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:10.517 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"
}
> * print "testing xlinkurl: 0.002
15:11:10.511 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
15:11:10.512 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:10.514 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
15:11:10.515 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.665
Scenario Outline Check 7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b
Check href links in metadata record van 7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.586
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.001
15:11:10.492 [print] title:Luchtfoto 2018 25cm CIR open data
* print title 0.000
15:11:10.492 [print] Luchtfoto 2018 25cm CIR open data
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.493 [print] [
  "PPB-GVA@kadaster.nl",
  "info@hetwaterschapshuis.nl",
  "kcc@kadaster.nl",
  "",
  "",
  "",
  "",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.494 [print] organisation: [
  "Kadaster",
  "Het Waterschapshuis",
  "Kadaster",
  "Eurosense",
  "Eurosense",
  "Eurosense",
  "Kadaster",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
15:11:10.501 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021",
  "",
  "",
  ""
]
* def id = "7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.040
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b021}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.542 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"
}
> * print "testing xlinkurl: 0.008
15:11:10.519 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.520 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:10.522 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
15:11:10.522 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:10.523 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
15:11:10.525 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.525 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.526 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:10.526 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:10.528 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.529 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.530 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.532 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:10.533 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
15:11:10.535 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.536 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.537 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:10.539 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:10.540 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
14.391
Scenario Outline Check 50eef6be-619d-4e16-9b92-48971109b636
Check href links in metadata record van 50eef6be-619d-4e16-9b92-48971109b636
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50eef6be-619d-4e16-9b92-48971109b636' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.628
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50eef6be-619d-4e16-9b92-48971109b636' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:10.902 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* print title 0.000
15:11:10.902 [print] Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:10.902 [print] [
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl",
  "",
  "servicedesk-data@rijkswaterstaat.nl",
  "servicedesk-data@rijkswaterstaat.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:10.903 [print] organisation: [
  "Rijkswaterstaat",
  "Rijkswaterstaat",
  "",
  "Rijkswaterstaat",
  "Rijkswaterstaat"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"50eef6be-619d-4e16-9b92-48971109b636","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:10.908 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "urn:ogc:def:crs:EPSG::5709"
]
* def id = "50eef6be-619d-4e16-9b92-48971109b636" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 6.881
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=urn:ogc:def:crs:EPSG::5709}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:17.791 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636"
}
> * print "testing xlinkurl: 0.000
15:11:10.914 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:10.914 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636
> Given url link 0.000
> When method HEAD 0.325
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.001
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.001
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
15:11:11.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.244 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:11:11.445 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
15:11:11.445 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
15:11:11.447 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.448 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49
> Given url link 0.000
> When method HEAD 6.023
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
15:11:17.473 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:17.474 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:17.784 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
15:11:17.787 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
15:11:17.788 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:17.789 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
15:11:17.790 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
15:11:17.790 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.648
Scenario Outline Check 5c37d29a-006d-4136-8989-adfc35a1d4a7
Check href links in metadata record van 5c37d29a-006d-4136-8989-adfc35a1d4a7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.631
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:11.035 [print] title:Wijk- en Buurtkaart 2019 versie 1
* print title 0.000
15:11:11.035 [print] Wijk- en Buurtkaart 2019 versie 1
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:11.037 [print] [
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "infoservice@cbs.nl",
  "",
  ""
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:11.038 [print] organisation: [
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Centraal Bureau voor de Statistiek",
  "Kadaster"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"5c37d29a-006d-4136-8989-adfc35a1d4a7","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:11.042 [print] [
  ""
]
* def id = "5c37d29a-006d-4136-8989-adfc35a1d4a7" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.004
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:11.047 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
15:11:11.045 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.045 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
15:11:11.046 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
15:11:11.046 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.241
Scenario Outline Check 844404a2-9cd0-452e-b29a-74588777485a
Check href links in metadata record van 844404a2-9cd0-452e-b29a-74588777485a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '844404a2-9cd0-452e-b29a-74588777485a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '844404a2-9cd0-452e-b29a-74588777485a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:11.073 [print] title:Geluidkaart hoofdspoornet 2011 (Lden)
* print title 0.000
15:11:11.073 [print] Geluidkaart hoofdspoornet 2011 (Lden)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:11.074 [print] [
  "sylvia.koolmees@minienw.nl",
  "sylvia.koolmees@minienw.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.001
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:11.075 [print] organisation: [
  "Ministerie van IenW",
  "Ministerie van IenW"
]
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"844404a2-9cd0-452e-b29a-74588777485a","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.002
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:11.079 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"
]
* def id = "844404a2-9cd0-452e-b29a-74588777485a" 0.009
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.338
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
15:11:11.426 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"
}
> * print "testing xlinkurl: 0.000
15:11:11.093 [print]
> * def link = __arg.link 0.002
> * print "testing xlinkurl:" + link 0.002
15:11:11.098 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
15:11:11.426 status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.157
Scenario Outline Check 280ed37a-b8d2-4ac5-8567-04d84fad3a41
Check href links in metadata record van 280ed37a-b8d2-4ac5-8567-04d84fad3a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.594
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
15:11:11.140 [print] title:Natura 2000 (INSPIRE geharmoniseerd)
* print title 0.000
15:11:11.140 [print] Natura 2000 (INSPIRE geharmoniseerd)
* def email = get response //electronicMailAddress/CharacterString 0.000
* print email 0.000
15:11:11.141 [print] [
  "geodatabeheer.giscc@rvo.nl",
  "geodatabeheer.giscc@rvo.nl",
  "beheer@pdok.nl"
]
* def organisationpath = karate.get('//organisationName/CharacterString') 0.000
* def organisation = organisationpath ? organisationpath : 'no organisationName found in dataset record' 0.000
* print 'organisation:', organisation 0.000
15:11:11.142 [print] organisation: Ministerie van Landbouw, Natuur en Voedselkwaliteit
* def mystorage = Java.type('storage.DataStorage') 0.000
* def db = new mystorage 0.000
* eval db.mywriteln('"280ed37a-b8d2-4ac5-8567-04d84fad3a41","'+ title + '","' + organisation + '","'+ email +'",' , 'target/surefire-reports/datasets.csv') 0.001
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
15:11:11.145 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "280ed37a-b8d2-4ac5-8567-04d84fad3a41" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.779
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:80 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 427, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:11:12.925 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 427, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
15:11:11.148 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.148 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.527
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41"
}
> * print "testing xlinkurl: 0.000
15:11:11.677 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.677 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41
> Given url link 0.000
> When method HEAD 0.215
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
15:11:11.894 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.895 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.040
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:11.935 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
15:11:11.935 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
15:11:11.936 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
15:11:11.936 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 0.988
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 427, url: https://data.overheid.nl/organisatie/PDOK, response: 
15:11:12.925 status code was: 404, expected: 200, response time: 427, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000